mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 15:20:08 +00:00
parent
9ecde7f732
commit
c781d708da
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
source_env() {
|
||||
if [[ -f .env ]]; then
|
||||
# test .env syntax
|
||||
zsh -fn .env || echo 'dotenv: error when sourcing `.env` file' >&2
|
||||
|
||||
if [[ -o a ]]; then
|
||||
source .env
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue