mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
@@ -1,5 +1,8 @@
|
|||||||
source_env() {
|
source_env() {
|
||||||
if [[ -f .env ]]; then
|
if [[ -f .env ]]; then
|
||||||
|
# test .env syntax
|
||||||
|
zsh -fn .env || echo 'dotenv: error when sourcing `.env` file' >&2
|
||||||
|
|
||||||
if [[ -o a ]]; then
|
if [[ -o a ]]; then
|
||||||
source .env
|
source .env
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user