autoenv.zsh | 3 ++- diff --git a/autoenv.zsh b/autoenv.zsh index 7d6e14282ddcf987ef0af6d1108c3087f523f8e3..9f1780ab5f809c1ed36c7b6f565a5d7d572c1de4 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -212,6 +212,7 @@ local _autoenv_envfile_dir=${3:-${1:A:h}} 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 @@ # 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() {