diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-01-27 00:14:18 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-01-27 00:14:18 +0300 |
commit | b7777bb86e0b5358f9d6d0bc81bc829f5b55eaba (patch) | |
tree | c3ba7ffd7715fe7e9922cd1ea338df5bc4c007ca | |
parent | a5cafefa4044c5b1f713e2313e6b0d6314b7c713 (diff) |
attempt to work around antigen bugs
-rw-r--r-- | powerlevel10k.zsh-theme | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/powerlevel10k.zsh-theme b/powerlevel10k.zsh-theme index 7bf6a2e3..57cb3502 100644 --- a/powerlevel10k.zsh-theme +++ b/powerlevel10k.zsh-theme @@ -18,11 +18,12 @@ '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 -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' + 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' () { eval $__p9k_intro |