1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-12-22 19:00:15 +02:00

Set autoenv_env_file in _autoenv_source

This commit is contained in:
Daniel Hahler 2015-01-17 16:39:04 +01:00
parent 685a3f16f5
commit 1856e89365

View File

@ -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() {