Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amyreese/zsh-opt-path
Automatically add ~/opt/*/bin to $PATH
https://github.com/amyreese/zsh-opt-path
paths zsh zsh-plugin
Last synced: 15 days ago
JSON representation
Automatically add ~/opt/*/bin to $PATH
- Host: GitHub
- URL: https://github.com/amyreese/zsh-opt-path
- Owner: amyreese
- License: mit
- Created: 2015-07-28T05:53:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-08-24T05:54:11.000Z (about 2 years ago)
- Last Synced: 2024-05-21T13:51:32.442Z (6 months ago)
- Topics: paths, zsh, zsh-plugin
- Language: Shell
- Size: 1.95 KB
- Stars: 11
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.