1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 14:42:52 +08:00
ohmyzsh/plugins/dotenv/dotenv.plugin.zsh
2016-12-14 17:49:08 +01:00

11 lines
131 B
Bash

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