/zsh-z

zsh plugin for installing and loading z

Primary LanguageShellMIT LicenseMIT

zsh-z

zsh plugin for installing and loading z

Inpired by zsh-pyenv

Table of content

Usage

Once the plugin installed, z will be available

Bundle zsh-z in your .zshrc

antigen bundle ptavares/zsh-z

Load zsh-z as a plugin in your .zshrc

zplug "ptavares/zsh-z"

Include the load command in your .zshrc

zget load ptavares/zsh-z

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

Updating z

The plugin comes with a zsh function to update z manually

# From zsh shell
update_zsh_z

License

MIT