zr-1.1.0 is not a library.
Visit the last successful build:
zr-0.6.4
zr(at)
Quick, simple zsh plugin manager
zr 1.1.0
by Jonathan Dahan <hi@jonathan.is>
zr [[http://example.com]plugin/name[.git/a/file.zsh]] fetch plugins and output sourceable zsh
zr --update updates plugins from already sourced zsh
zr help show help
Examples
zr author/name *.zsh from github.com/author/name
zr author/name/file.zsh file.zsh from github.com/author/name
zr https://gitlab.com/a/plugin *.zsh from gitlab.com/a/plugin
zr https://gitlab.com/a/plugin.git/file.zsh file.zsh from gitlab.com/a/plugin
install
zr
is published to crates.io, and can be installed with cargo install zr
usage
Add this to your ~/.zshrc:
# simplest usage
A bit more complex example, that only generates when .zshrc has been updated:
# Generate new ~/.config/zr.zsh if it does not exist or if ~/.zshrc has been changed
if || ; then
fi
identifiers
zr
supports four identifier formats. The last format requires .git
as a delimeter.
format | resolves to |
---|---|
author/name |
*.zsh from https://github.com/author/name |
author/name/file.zsh |
file.zsh from https://github.com/author/name |
https://gitlab.com/a/plugin |
*.zsh from https://gitlab.com/a/plugin |
https://gitlab.com/a/plugin.git/file.zsh |
file.zsh from https://gitlab.com/a/plugin.git. The .git is used as a delimeter, and is required. |
speed
The following two benchmarks show on my dell xps13 9380
- it takes 5ms to generate a sourceable script from a dozen or so repos
- it takes an additional 15ms for zsh to load said script
# install hyperfine for benchmarking
||
# run
)
)
)
)
# benchmark.zsh
thanks
- SX91 for linux fixes
- alanpearce for bug reports and nix package
- nshtg for bug reports and windows fix
- foray1010 for improving install instructions
- Avi-D-coder for adding completions support
- ralsei for prodding to update crates.io
- tekumara for helping figure out --update
- myrovh for fixing panics on some linux systems
- TimB87 for adding openssl 3 support
- everyone on #rust-beginners