ohmyzsh/plugins/dotenv/dotenv.plugin.zsh

11 lines
131 B
Bash
Raw Normal View History

2016-12-14 16:49:08 +00:00
#!/bin/zsh
source_env() {
if [[ -f .env ]]; then
source .env
fi
}
autoload -U add-zsh-hook
add-zsh-hook chpwd source_env