mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-05-11 05:55:17 +00: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