1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-18 13:41:56 +00:00

survive SH_WORD_SPLIT; fixes #220

This commit is contained in:
romkatv 2019-09-17 21:41:07 +02:00
parent 5b293c13a2
commit ebe6a5198d

View file

@ -3245,7 +3245,7 @@ _p9k_precmd() {
__p9k_new_pipestatus=($pipestatus) __p9k_new_pipestatus=($pipestatus)
if ! zle; then if ! zle; then
print -rn ${_p9k_prompt_newline:-} print -rn "${_p9k_prompt_newline:-}"
if (( $+_p9k_real_zle_rprompt_indent )); then if (( $+_p9k_real_zle_rprompt_indent )); then
if [[ -n $_p9k_real_zle_rprompt_indent ]]; then if [[ -n $_p9k_real_zle_rprompt_indent ]]; then
@ -3263,12 +3263,12 @@ _p9k_precmd() {
( (
local p=("${(@)parameters[(I)AWESOME_*|CODEPOINT_*]}") local p=("${(@)parameters[(I)AWESOME_*|CODEPOINT_*]}")
if (( $#p )); then if (( $#p )); then
typeset -x -- $p typeset -x -- "$p"
fi fi
$__p9k_root_dir/internal/wizard.zsh -d $__p9k_root_dir "$__p9k_root_dir"/internal/wizard.zsh -d "$__p9k_root_dir"
) )
if (( ! $? )); then if (( ! $? )); then
source $__p9k_cfg_path source "$__p9k_cfg_path"
_p9k_must_init _p9k_must_init
fi fi
fi fi