diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-09-23 20:32:39 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-09-23 20:32:39 +0300 |
commit | 5f08c5493f78f3dcacc3877d1b8064a58515c48c (patch) | |
tree | 9c1e7e6f0e1b185be80cea93c19cf184afd51afb /config/p10k-pure.zsh | |
parent | c000eddcff0fb38df2d0137efe24d9d2d900f209 (diff) |
merge improvements from lean to pure
Diffstat (limited to 'config/p10k-pure.zsh')
-rw-r--r-- | config/p10k-pure.zsh | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/config/p10k-pure.zsh b/config/p10k-pure.zsh index a49653a0..61a2f5a1 100644 --- a/config/p10k-pure.zsh +++ b/config/p10k-pure.zsh @@ -14,13 +14,12 @@ # 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. -# Temporarily disable aliases. -if [[ -o 'aliases' ]]; then - 'builtin' 'unsetopt' 'aliases' - local p10k_pure_restore_aliases=1 -else - local p10k_pure_restore_aliases=0 -fi +# Temporarily change options. +'builtin' 'local' '-a' 'p10k_config_opts' +[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases') +[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob') +[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand') +'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand' () { emulate -L zsh @@ -101,5 +100,5 @@ fi typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=yellow } -(( ! p10k_pure_restore_aliases )) || setopt aliases -'builtin' 'unset' 'p10k_pure_restore_aliases' +setopt ${p10k_config_opts[@]} +'builtin' 'unset' 'p10k_config_opts' |