/$$ /$$ /$$$$$$$$
| $$ | $$|____ /$$/
| $$ | $$ /$$$$/
| $$ | $$ /$$__/
| $$$$$$$/ /$$$$$$$$ zsh micro plugin manager
| $$____/ |________/
| $$
| $$
\_$Clone from GitHub and source uz.zsh.
git clone https://github.com/maxrodrigo/uz.git ~/.uz# ~/.zshrc
source ~/.uz/uz.zshAdd plugins' Github repo to .zshrc with zadd. Plugins are automatically installed on load.
zadd zsh-users/zsh-syntax-highlighting
zadd zsh-users/zsh-completionsBy default µz sources init.zsh or plugin_name.(zsh|plugin.zsh|zsh-theme|sh) but you can also specify another script to the zadd command as follows:
zadd username/repo script_namezclean: removes plugins no longer in.zshrc.zupdate: update installed plugins.
By default plugins are installed into ~/${UZ_PATH}/plugins. This behavior can be changed re-setting UZ_PLUGIN_PATH.
export UZ_PLUGIN_PATH=${UZ_PATH}/plugins # default# ~/.zshrc
source ~/.uz/uz.zsh
zadd maxdrorigo/gitster
zadd maxrodrigo/zsh-kubernetes-contexts
zadd zsh-users/zsh-syntax-highlighting
zadd zsh-users/zsh-history-substring-search
zadd zsh-users/zsh-completionszshgit
μz only creates folders for the cloned modules and, by default, are self contained into the installation directory.
To uninstall remove the installation directory ($UZ_PATH) and the modules folder ($UZ_PLUGIN_PATH) if applicable.
ls -d ${UZ_PLUGIN_PATH}/*/.git
0.00s user 0.00s system 77% cpu 0.002 total
find $UZ_PLUGIN_PATH -type d -name .git -prune
0.01s user 0.00s system 95% cpu 0.006 total
find $UZ_PLUGIN_PATH -type d -exec test -e '{}/.git' \; -print0
0.19s user 0.09s system 100% cpu 0.286 total