Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path modification bash shell script #361

Closed
rickstaa opened this issue Jan 23, 2020 · 4 comments
Closed

Path modification bash shell script #361

rickstaa opened this issue Jan 23, 2020 · 4 comments

Comments

@rickstaa
Copy link

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.

@MichaelHabib
Copy link

Hi,
Is this something like Direnv ?

@rickstaa
Copy link
Author

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
Copy link
Author

rickstaa commented 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
Copy link
Author

Closed due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants