epogrebnyak / justpath

Inspect and refine PATH environment variable on Windows, Linux and MacOS.
GNU General Public License v3.0
337 stars 12 forks source link

monday thoughts #17

Open epogrebnyak opened 7 months ago

epogrebnyak commented 7 months ago

A few thoughts:

https://www.reddit.com/r/Python/comments/1ac7fao/comment/kjtuk6f/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

epogrebnyak commented 7 months ago

Sometimes paths can contain env variables. You might want to expand them, including expanduser

This we expand in Direcotry.canonical

epogrebnyak commented 7 months ago

Do you want to handle relative paths? This isn’t generally a good idea for the PATH variable, but it could be a decent exercise.

This not yet

epogrebnyak commented 7 months ago

also may have regex/glob in PATH for some shells perhaps like fzf/*/bin