X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=autoenv.zsh;h=8e44506c8548ab01f8e08b31925d62203fdcc47c;hb=bcfdd753824b37b41c9c82cacc50b5bdba02c9cc;hp=47d9e1392994f0ccec806d2e1cf6e2fcaab977f1;hpb=e0fc4bb58a5e0ce2258370bd695e8dabbfbc530d;p=zsh-autoenv.git diff --git a/autoenv.zsh b/autoenv.zsh index 47d9e13..8e44506 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -290,7 +290,7 @@ _autoenv_source() { # XXX: pollutes environment with e.g. `stash`, and `autostash` will cause # an overwritten `stash` function to be called! if ! (( $+functions[autostash] )); then - if \grep -qE '\b(autostash|autounstash|stash)\b' $autoenv_env_file; then + if \grep -qE '\b(autostash|autounstash|stash|unstash)\b' $autoenv_env_file; then source ${${funcsourcetrace[1]%:*}:h}/lib/varstash fi # NOTE: Varstash uses $PWD as default for varstash_dir, we might set it to