zsh plugin for installing and loading z
Inpired by zsh-pyenv
Once the plugin installed, z
will be available
- Using Antigen
Bundle zsh-z
in your .zshrc
antigen bundle ptavares/zsh-z
- Using zplug
Load zsh-z
as a plugin in your .zshrc
zplug "ptavares/zsh-z"
- Using zgen
Include the load command in your .zshrc
zget load ptavares/zsh-z
- As an Oh My ZSH! custom plugin
Clone zsh-z
into your custom plugins repo and load as a plugin in your .zshrc
git clone https://github.com/ptavares/zsh-z.git ~/.oh-my-zsh/custom/plugins/zsh-z
plugins+=(zsh-z)
Keep in mind that plugins need to be added before oh-my-zsh.sh
is sourced.
- Manually
Clone this repository somewhere (~/.zsh-z
for example) and source it in your .zshrc
git clone https://github.com/ptavares/zsh-z ~/.zsh-z
source ~/.zsh-z/zsh-z.plugin.zsh
The plugin comes with a zsh function to update z manually
# From zsh shell
update_zsh_z