From: Daniel Hahler Date: Sat, 17 Jan 2015 15:39:04 +0000 (+0100) Subject: Set autoenv_env_file in _autoenv_source X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1856e8936551701f08d29e1f0184977181e73517;p=zsh-autoenv.git Set autoenv_env_file in _autoenv_source --- diff --git a/autoenv.zsh b/autoenv.zsh index 7d6e142..9f1780a 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -212,6 +212,7 @@ _autoenv_source() { autoenv_from_dir=$_autoenv_chpwd_prev_dir autoenv_to_dir=$PWD + autoenv_env_file=$env_file # Source varstash library once. if [[ -z "$functions[(I)autostash]" ]]; then @@ -237,7 +238,7 @@ _autoenv_source() { # Unset vars set for enter/leave scripts. # This should not get done for recursion (via autoenv_source_parent), # and can be useful to have in general after autoenv was used. - # unset autoenv_event autoenv_from_dir autoenv_to_dir + # unset autoenv_event autoenv_from_dir autoenv_to_dir autoenv_env_file } _autoenv_get_file_upwards() {