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

merge improvements from lean to pure

This commit is contained in:
romkatv 2019-09-23 19:32:39 +02:00
parent c000eddcff
commit 5f08c5493f

View file

@ -14,13 +14,12 @@
# you like the general style of Pure but not particularly attached to all its quirks, type # you like the general style of Pure but not particularly attached to all its quirks, type
# `p10k configure` while having Powerlevel10k theme active and pick lean style. # `p10k configure` while having Powerlevel10k theme active and pick lean style.
# Temporarily disable aliases. # Temporarily change options.
if [[ -o 'aliases' ]]; then 'builtin' 'local' '-a' 'p10k_config_opts'
'builtin' 'unsetopt' 'aliases' [[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
local p10k_pure_restore_aliases=1 [[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
else [[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
local p10k_pure_restore_aliases=0 'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
fi
() { () {
emulate -L zsh emulate -L zsh
@ -101,5 +100,5 @@ fi
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=yellow typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=yellow
} }
(( ! p10k_pure_restore_aliases )) || setopt aliases setopt ${p10k_config_opts[@]}
'builtin' 'unset' 'p10k_pure_restore_aliases' 'builtin' 'unset' 'p10k_config_opts'