From bcfdd753824b37b41c9c82cacc50b5bdba02c9cc Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 19 Aug 2017 15:39:57 +0200 Subject: [PATCH] _autoenv_source: grep for unstash also Just for consistency. --- autoenv.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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