forked from extern/ohmyzsh
Fix dotenv plugin accepted file format and clarify README (#6093)
* Fix dotenv plugin accepted file format * clarify README and add disclaimer section
This commit is contained in:
@ -2,7 +2,13 @@
|
||||
|
||||
source_env() {
|
||||
if [[ -f .env ]]; then
|
||||
source .env
|
||||
if [[ -o a ]]; then
|
||||
source .env
|
||||
else
|
||||
set -a
|
||||
source .env
|
||||
set +a
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user