Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.