Awesome
zsh-direnv
zsh plugin for installing and loading direnv
Inpired by zsh-pyenv
Table of content
This documentation section is generated automatically
<!--TOC--> <!--TOC-->Supported Operating system
List of Operating System currently supported by the plugin:
- :penguin: Linux
- amd64
- arm64
- :apple: Darwin
- amd64
- arm64
Usage
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
Updating direnv
The plugin comes with a zsh function to update direnv manually
# From zsh shell
update_zsh_direnv