make sure _p9k_restore_aliases does not get unset

pull/145/head
romkatv 5 years ago
parent 07eae5942d
commit 2ec4ed0702

@ -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'

Loading…
Cancel
Save