1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-25 13:30:07 +00:00

make sure _p9k_restore_aliases does not get unset

This commit is contained in:
romkatv 2019-07-25 08:00:51 +02:00
parent 07eae5942d
commit 2ec4ed0702

View file

@ -12,9 +12,9 @@
if [[ -o 'aliases' ]]; then if [[ -o 'aliases' ]]; then
'builtin' 'unsetopt' 'aliases' 'builtin' 'unsetopt' 'aliases'
local _p9k_restore_aliases=1 local __p9k_restore_aliases=1
else else
local _p9k_restore_aliases=0 local __p9k_restore_aliases=0
fi fi
() { () {
@ -49,5 +49,5 @@ fi
source $__p9k_installation_dir/internal/p10k.zsh || true source $__p9k_installation_dir/internal/p10k.zsh || true
} }
(( ! _p9k_restore_aliases )) || setopt aliases (( ! __p9k_restore_aliases )) || setopt aliases
'builtin' 'unset' '_p9k_restore_aliases' 'builtin' 'unset' '__p9k_restore_aliases'