1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-11-25 16:31:00 +02:00

_autoenv_source: grep for unstash also

Just for consistency.
This commit is contained in:
Daniel Hahler 2017-08-19 15:39:57 +02:00
parent e0fc4bb58a
commit bcfdd75382

View File

@ -290,7 +290,7 @@ _autoenv_source() {
# XXX: pollutes environment with e.g. `stash`, and `autostash` will cause # XXX: pollutes environment with e.g. `stash`, and `autostash` will cause
# an overwritten `stash` function to be called! # an overwritten `stash` function to be called!
if ! (( $+functions[autostash] )); then 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 source ${${funcsourcetrace[1]%:*}:h}/lib/varstash
fi fi
# NOTE: Varstash uses $PWD as default for varstash_dir, we might set it to # NOTE: Varstash uses $PWD as default for varstash_dir, we might set it to