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