{"repo":"epogrebnyak/justpath","free":true,"listed":false,"github":"https://github.com/epogrebnyak/justpath","clone":"git clone https://github.com/epogrebnyak/justpath.git","description":"Inspect and refine PATH environment variable on Windows, Linux and MacOS.","language":"Python","stars":354,"topics":["command-line","environment-variables","path","python","environments","filesystem"],"license":"MIT","category":"cli-tools","readme_excerpt":"justpath [![Reddit][reddit shield]](https://www.reddit.com/r/Python/comments/1aehs4i/clean path of nonexistent directories with/) [![Hacker News][hn logo]](https://news.ycombinator.com/item?id=39493363) [reddit shield]: https://img.shields.io/badge/Reddit-%23FF4500.svg?style=flat&logo=Reddit&logoColor=white [hn logo]: https://img.shields.io/badge/HackerNews-F0652F?logo=ycombinator&logoColor=white I always get the feeling that nobody knows what a PATH is and at this point they are too afraid to ask. ([reddit][quote]) Explore PATH environment variable on Windows, Linux or Mac, detect and eliminate invalid or duplicate directories. Quick start Install with pip, pipx or uv, choose any command from below: Try the following: Screencast Basic usage What is the raw content of PATH string? List directories in PATH line by line. Same as above, but no line numbers, no comments, no color, just bare text. Show directories from PATH in alphabetic order[^1]: The result will look different when sorted by real paths: [^1]: Sorting helps to view and analyze PATH . Do not put a sorted PATH back on your system as you will loose useful information about path resolution order. What are the paths that contain bin string? What are the paths that do not contain windows string? These flags can be repeated: May there be any directories in PATH that do not exist? Are there any duplicate directories in PATH ? See the same without resolving symlinks: What is the PATH without invalid paths and duplicates? ","default_branch":null,"files":null,"tree":[],"storefront":"/r/epogrebnyak","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/epogrebnyak/justpath/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}