mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2024-11-22 07:20:59 +02:00
9339306f60
Do not `cd` in the `chpwd` hook: changes $PWD behavior in .env files! |
||
---|---|---|
lib | ||
tests | ||
.gitignore | ||
.travis.yml | ||
autoenv.plugin.zsh | ||
autoenv.zsh | ||
Makefile | ||
README.md |
Autoenv for zsh
This is is a zsh optimized version of autoenv
Why a zsh version
- Auto-completion will work rather than vomit
- No stupid error messages
- It's elegant to use the built in
chpwd_functions
Installation
Using antigen
antigen-bundle Tarrasch/zsh-autoenv
Manually
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
Credits
The code was mostly copied from Joshua Clayton