mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-08-07 08:04:26 +08: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