diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-02-12 13:15:12 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-02-12 13:15:12 +0300 |
commit | d71d1409c45586489eec1c7cd0823b8ffed04cc9 (patch) | |
tree | b30d2db6a26871847db72326aec1ddea103a284d /powerlevel10k.zsh-theme | |
parent | f06be72977932606e047fdff713959e59c7252e3 (diff) |
fix `p10k display -a`
Diffstat (limited to 'powerlevel10k.zsh-theme')
-rw-r--r-- | powerlevel10k.zsh-theme | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/powerlevel10k.zsh-theme b/powerlevel10k.zsh-theme index 9bb680fe..3e76aac8 100644 --- a/powerlevel10k.zsh-theme +++ b/powerlevel10k.zsh-theme @@ -18,12 +18,20 @@ 'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand' (( $+__p9k_root_dir )) || typeset -gr __p9k_root_dir=${POWERLEVEL9K_INSTALLATION_DIR:-${${(%):-%x}:A:h}} -# Note: leading spaces before `local` are important. Otherwise Antigen will remove `local` (!!!). -(( $+__p9k_intro )) || typeset -gr __p9k_intro='emulate -L zsh -o no_hist_expand -o extended_glob -o no_prompt_bang -o prompt_percent -o no_prompt_subst -o no_aliases -o no_bg_nice -o typeset_silent +(( $+__p9k_intro )) || { + # Note: leading spaces before `local` are important. Otherwise Antigen will remove `local` (!!!). + typeset -gr __p9k_intro='emulate -L zsh -o no_hist_expand -o extended_glob -o no_prompt_bang -o prompt_percent -o no_prompt_subst -o no_aliases -o no_bg_nice -o typeset_silent local -a match mbegin mend reply local -i MBEGIN MEND OPTIND local MATCH REPLY OPTARG IFS=$'\'' \t\n\0'\'' [[ -z $_p9k__locale ]] || local LC_ALL=$_p9k__locale' + # The same as above but without `local -a reply` and `local REPLY`. + typeset -gr __p9k_intro_no_reply='emulate -L zsh -o no_hist_expand -o extended_glob -o no_prompt_bang -o prompt_percent -o no_prompt_subst -o no_aliases -o no_bg_nice -o typeset_silent + local -a match mbegin mend + local -i MBEGIN MEND OPTIND + local REPLY OPTARG IFS=$'\'' \t\n\0'\'' + [[ -z $_p9k__locale ]] || local LC_ALL=$_p9k__locale' +} () { eval "$__p9k_intro" @@ -35,7 +43,7 @@ if [[ $__p9k_dump_file != $__p9k_instant_prompt_dump_file ]] && (( ! $+functions[_p9k_preinit] )) && source $__p9k_dump_file 2>/dev/null && (( $+functions[_p9k_preinit] )); then _p9k_preinit fi - typeset -gr __p9k_sourced=5 + typeset -gr __p9k_sourced=6 if [[ -w $__p9k_root_dir && -w $__p9k_root_dir/internal && -w $__p9k_root_dir/gitstatus && ${(%):-%#} == % ]]; then local f for f in $__p9k_root_dir/{powerlevel9k.zsh-theme,powerlevel10k.zsh-theme,internal/p10k.zsh,internal/icons.zsh,internal/configure.zsh,internal/worker.zsh,internal/parser.zsh,gitstatus/gitstatus.plugin.zsh}; do |