|
|
@ -10,12 +10,12 @@
|
|
|
|
# https://github.com/robbyrussell/oh-my-zsh/blob/74177c5320b2a1b2f8c4c695c05984b57fd7c6ea/themes/agnoster.zsh-theme
|
|
|
|
# https://github.com/robbyrussell/oh-my-zsh/blob/74177c5320b2a1b2f8c4c695c05984b57fd7c6ea/themes/agnoster.zsh-theme
|
|
|
|
################################################################
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -o 'aliases' ]]; then
|
|
|
|
# Temporarily change options.
|
|
|
|
'builtin' 'unsetopt' 'aliases'
|
|
|
|
'builtin' 'local' '-a' '_p9k_src_opts'
|
|
|
|
local __p9k_restore_aliases=1
|
|
|
|
[[ ! -o 'aliases' ]] || _p9k_src_opts+=('aliases')
|
|
|
|
else
|
|
|
|
[[ ! -o 'sh_glob' ]] || _p9k_src_opts+=('sh_glob')
|
|
|
|
local __p9k_restore_aliases=0
|
|
|
|
[[ ! -o 'no_brace_expand' ]] || _p9k_src_opts+=('no_brace_expand')
|
|
|
|
fi
|
|
|
|
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
|
|
|
|
|
|
|
|
|
|
|
|
typeset -g __p9k_root_dir="${POWERLEVEL9K_INSTALLATION_DIR:-${${(%):-%x}:A:h}}"
|
|
|
|
typeset -g __p9k_root_dir="${POWERLEVEL9K_INSTALLATION_DIR:-${${(%):-%x}:A:h}}"
|
|
|
|
|
|
|
|
|
|
|
@ -34,5 +34,5 @@ typeset -g __p9k_root_dir="${POWERLEVEL9K_INSTALLATION_DIR:-${${(%):-%x}:A:h}}"
|
|
|
|
source $__p9k_root_dir/internal/p10k.zsh || true
|
|
|
|
source $__p9k_root_dir/internal/p10k.zsh || true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
(( ! __p9k_restore_aliases )) || setopt aliases
|
|
|
|
(( ${#_p9k_src_opts} )) && setopt ${_p9k_src_opts[@]}
|
|
|
|
'builtin' 'unset' '__p9k_restore_aliases'
|
|
|
|
'builtin' 'unset' '_p9k_src_opts'
|
|
|
|