add dotenv plugin (#4373)

This commit is contained in:
Arthur authored and Marc Cornellà committed 2016-12-14 17:49:08 +01:00
1 parent 3b13dc07d8
commit 8d35fa0e2f
2 files changed
+44

No files matched your search

+10
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