mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2024-12-22 10:50:16 +02:00
_autoenv_source: grep for unstash also
Just for consistency.
This commit is contained in:
parent
e0fc4bb58a
commit
bcfdd75382
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user