mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01: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