dotenv: call function on startup

Fixes #7017
master
Marc Cornellà 8 years ago
parent 8961a3794c
commit 9ecde7f732
  1. 4
      plugins/dotenv/dotenv.plugin.zsh

@ -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

Loading…
Cancel
Save