zr-1.0.0 is not a library.
Visit the last successful build:
zr-0.6.4
z :rat:
Quick, simple zsh plugin manager
zr 0.9.0
by Jonathan Dahan <github@jonathan.is>
zr --update updates loaded files listened in _ZR environment variable
zr [[http://example.com]plugin/name[.git/path/to/file.zsh]] fetch or update plugins and output sourceable zsh
zr help show help
install
You can use crates.io and cargo to just cargo install zr
usage
Add this to your ~/.zshrc:
# Generate new ~/.zr/init.zsh if it does not exist or ~/.zshrc is newer
if || ; then
fi
identifiers
zr supports four identifier formats, note that 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 benchmark.zsh takes 8ms to generate the file.
# install hyperfine for benchmarking
# zr generation time
)
)
# zr generation + zsh load time
)
)
# 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
- everyone on #rust-beginners