mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 21:51:05 +01:00
7cb5fa8aea
* Fix dotenv plugin accepted file format * clarify README and add disclaimer section
16 lines
217 B
Bash
16 lines
217 B
Bash
#!/bin/zsh
|
|
|
|
source_env() {
|
|
if [[ -f .env ]]; then
|
|
if [[ -o a ]]; then
|
|
source .env
|
|
else
|
|
set -a
|
|
source .env
|
|
set +a
|
|
fi
|
|
fi
|
|
}
|
|
|
|
autoload -U add-zsh-hook
|
|
add-zsh-hook chpwd source_env
|