This is is a zsh optimized version of autoenv
- Auto-completion will work rather than vomit
- No stupid error messages
- It's elegant to use the built in
chpwd_functions
Using antigen
antigen-bundle Tarrasch/zsh-autoenv
Using zgen
Add
zgen load Tarrasch/zsh-autoenv
to your .zshrc
where you're loading your other plugins.
Clone the repository and source it from your ~/.zshrc
file:
git clone https://github.com/Tarrasch/zsh-autoenv ~/.dotfiles/lib/zsh-autoenv
echo 'source ~/.dotfiles/lib/zsh-autoenv/autoenv.zsh' >> ~/.zshrc
The code was mostly copied from Joshua Clayton