Skip to content

amyreese/zsh-opt-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

zsh-opt-path

Automatically add paths in ~/opt/ to your $PATH.

This will search your ~/opt/ directory for subpaths, or subpaths containing a bin directory, and add these directories to your $PATH if they are not already listed.

For example, if you have multiple projects built in separate prefixes of ~/opt/, this will find them and add them to $PATH without needing to be explicitly listed in your .zshrc:

$ echo $PATH
/home/user/opt/znc/bin:/home/user/opt/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

copyright

zsh-opt-path is copyright 2022 Amethyst Reese and licensed under the MIT license.

About

Automatically add ~/opt/*/bin to $PATH

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages