add dotenv plugin

This commit is contained in:
Arthur L 2015-09-20 16:18:12 +06:00
commit dca4f76844
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,10 @@
#!/bin/zsh
source_env() {
if [[ -f .env ]]; then
source .env
fi
}
autoload -U add-zsh-hook
add-zsh-hook chpwd source_env