zr-0.7.1 is not a library.
Visit the last successful build:
zr-0.6.4
z :rat:
Quick, simple zsh plugin manager
zr 0.7.1
Jonathan Dahan <hi@jonathan.is>
z:rat: - zsh plugin manager
USAGE:
zr [OPTIONS] [SUBCOMMAND]
FLAGS:
--help Prints help information
-V, --version Prints version information
OPTIONS:
-h, --home <home> Sets a custom directory for plugins
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
list list plugins
load load plugins fresh
update update plugins
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
If you'd like a different directory for ~/.zr
, just set ZR_HOME
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 171ms total, with 26ms spent in zr load
for my 2012 13" retina macbook pro.
# install hyperfine for benchmarking
# benchmark zr init time
|
)
# benchmark total 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
- everyone on #rust-beginners