Path modification bash shell script #573

Closed
opened 2025-11-19 20:46:35 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @rickstaa on GitHub (Jan 23, 2020).

Not sure if I'm in the right place but I made a small bash alias wrapper script which I thought might be useful to other people. It can be used to easily list, remove, move and add paths to the PATH and PYTHONPATH environmental variables. Feel free to add it to the list if you consider it useful https://github.com/rickstaa/.pathmod. I am planning to add support for other shells in the future. Contributions are always welcome.

Originally created by @rickstaa on GitHub (Jan 23, 2020). Not sure if I'm in the right place but I made a small bash alias wrapper script which I thought might be useful to other people. It can be used to easily list, remove, move and add paths to the PATH and PYTHONPATH environmental variables. Feel free to add it to the list if you consider it useful [https://github.com/rickstaa/.pathmod](https://github.com/rickstaa/.pathmod). I am planning to add support for other shells in the future. Contributions are always welcome.
Author
Owner

@MichaelHabib commented on GitHub (Jan 23, 2020):

Hi,
Is this something like Direnv ?

@MichaelHabib commented on GitHub (Jan 23, 2020): Hi, Is this something like Direnv ?
Author
Owner

@rickstaa commented on GitHub (Jan 26, 2020):

Hey @MichaelHabib. Thanks for the tip I did not know about Direnv. It has a lot of useful functions! I looked at the documentation, and regarding PATH modification tools, my script has some additional options (remove, move and check PATH and PYTHONPATH) compared to Direnv. It further misses the expand path option. Hope you find my scrip useful. If you have suggestions or experience problems with my script let me know.

@rickstaa commented on GitHub (Jan 26, 2020): Hey @MichaelHabib. Thanks for the tip I did not know about Direnv. It has a lot of useful functions! I looked at the documentation, and regarding PATH modification tools, my script has some additional options (remove, move and check PATH and PYTHONPATH) compared to Direnv. It further misses the expand path option. Hope you find my scrip useful. If you have suggestions or experience problems with my script let me know.
Author
Owner

@rickstaa commented on GitHub (Jan 27, 2020):

@MichaelHabib The newest version of pathmod v1.0.2 now also includes the expand path option. Further, it also enables you to remove PATHS or PYTHONPATHS by specifying its index number.

@rickstaa commented on GitHub (Jan 27, 2020): @MichaelHabib The newest version of pathmod [v1.0.2](https://github.com/rickstaa/.pathmod/tree/v1.0.2) now also includes the expand path option. Further, it also enables you to remove PATHS or PYTHONPATHS by specifying its index number.
Author
Owner

@rickstaa commented on GitHub (Jun 18, 2021):

Closed due to inactivity.

@rickstaa commented on GitHub (Jun 18, 2021): Closed due to inactivity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-shell#573