autoenv.zsh | 4 ++-- diff --git a/autoenv.zsh b/autoenv.zsh index 9f8ae9021f4233204b5b0bee5021ddc529f0e93d..eb5160546764aecf5247b914e4fc84b55fbd9adb 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -152,7 +152,7 @@ return 0 } # Get directory of this file (absolute, with resolved symlinks). -_autoenv_this_dir=${0:A:h} +_autoenv_source_dir=${0:A:h} _autoenv_source() { local env_file=$1 @@ -164,7 +164,7 @@ _autoenv_to_dir=$PWD # Source varstash library once. if [[ -z "$functions[(I)autostash]" ]]; then - source $_autoenv_this_dir/lib/varstash + source $_autoenv_source_dir/lib/varstash # NOTE: Varstash uses $PWD as default for varstash_dir, we might set it to # ${env_file:h}. fi