1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-23 21:01:58 +00:00

dotenv: call function on startup

Fixes #7017
This commit is contained in:
Marc Cornellà 2018-08-07 23:54:07 +02:00
parent 8961a3794c
commit 9ecde7f732

View file

@ -1,5 +1,3 @@
#!/bin/zsh
source_env() {
if [[ -f .env ]]; then
if [[ -o a ]]; then
@ -14,3 +12,5 @@ source_env() {
autoload -U add-zsh-hook
add-zsh-hook chpwd source_env
source_env