mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-21 06:41:57 +00:00
got overexcited with backslashes
This commit is contained in:
parent
b9423485f2
commit
6b9a2e0cec
1 changed files with 4 additions and 4 deletions
|
@ -3199,7 +3199,7 @@ _p9k_init_lines() {
|
||||||
if [[ -n $_P9K_RETVAL ]]; then
|
if [[ -n $_P9K_RETVAL ]]; then
|
||||||
_P9K_RETVAL+=%b%k%f
|
_P9K_RETVAL+=%b%k%f
|
||||||
# Not escaped for historical reasons.
|
# Not escaped for historical reasons.
|
||||||
_P9K_RETVAL='${_P9K_Z::="'${${_P9K_RETVAL//\\/\\\\\\}//\"/\\\\\"}'"}'
|
_P9K_RETVAL='${_P9K_Z::="'${${_P9K_RETVAL//\\/\\\\}//\"/\\\"}'"}'
|
||||||
if [[ $POWERLEVEL9K_PROMPT_ON_NEWLINE == true ]]; then
|
if [[ $POWERLEVEL9K_PROMPT_ON_NEWLINE == true ]]; then
|
||||||
_P9K_LINE_SUFFIX_LEFT[-2]+=$_P9K_RETVAL
|
_P9K_LINE_SUFFIX_LEFT[-2]+=$_P9K_RETVAL
|
||||||
else
|
else
|
||||||
|
@ -3215,7 +3215,7 @@ _p9k_init_lines() {
|
||||||
_p9k_get_icon '' MULTILINE_FIRST_PROMPT_PREFIX
|
_p9k_get_icon '' MULTILINE_FIRST_PROMPT_PREFIX
|
||||||
[[ _P9K_RETVAL == *%* ]] && _P9K_RETVAL+=%b%k%f
|
[[ _P9K_RETVAL == *%* ]] && _P9K_RETVAL+=%b%k%f
|
||||||
# Not escaped for historical reasons.
|
# Not escaped for historical reasons.
|
||||||
_P9K_RETVAL='${_P9K_Z::="'${${_P9K_RETVAL//\\/\\\\\\}//\"/\\\\\"}'"}'
|
_P9K_RETVAL='${_P9K_Z::="'${${_P9K_RETVAL//\\/\\\\}//\"/\\\"}'"}'
|
||||||
_P9K_LINE_PREFIX_LEFT[1]=$_P9K_RETVAL$_P9K_LINE_PREFIX_LEFT[1]
|
_P9K_LINE_PREFIX_LEFT[1]=$_P9K_RETVAL$_P9K_LINE_PREFIX_LEFT[1]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -3223,7 +3223,7 @@ _p9k_init_lines() {
|
||||||
_p9k_get_icon '' MULTILINE_LAST_PROMPT_PREFIX
|
_p9k_get_icon '' MULTILINE_LAST_PROMPT_PREFIX
|
||||||
[[ _P9K_RETVAL == *%* ]] && _P9K_RETVAL+=%b%k%f
|
[[ _P9K_RETVAL == *%* ]] && _P9K_RETVAL+=%b%k%f
|
||||||
# Not escaped for historical reasons.
|
# Not escaped for historical reasons.
|
||||||
_P9K_RETVAL='${_P9K_Z::="'${${_P9K_RETVAL//\\/\\\\\\}//\"/\\\\\"}'"}'
|
_P9K_RETVAL='${_P9K_Z::="'${${_P9K_RETVAL//\\/\\\\}//\"/\\\"}'"}'
|
||||||
_P9K_LINE_PREFIX_LEFT[-1]=$_P9K_RETVAL$_P9K_LINE_PREFIX_LEFT[-1]
|
_P9K_LINE_PREFIX_LEFT[-1]=$_P9K_RETVAL$_P9K_LINE_PREFIX_LEFT[-1]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -3251,7 +3251,7 @@ _p9k_init_lines() {
|
||||||
_p9k_get_icon '' MULTILINE_NEWLINE_PROMPT_PREFIX
|
_p9k_get_icon '' MULTILINE_NEWLINE_PROMPT_PREFIX
|
||||||
[[ _P9K_RETVAL == *%* ]] && _P9K_RETVAL+=%b%k%f
|
[[ _P9K_RETVAL == *%* ]] && _P9K_RETVAL+=%b%k%f
|
||||||
# Not escaped for historical reasons.
|
# Not escaped for historical reasons.
|
||||||
_P9K_RETVAL='${_P9K_Z::="'${${_P9K_RETVAL//\\/\\\\\\}//\"/\\\\\"}'"}'
|
_P9K_RETVAL='${_P9K_Z::="'${${_P9K_RETVAL//\\/\\\\}//\"/\\\"}'"}'
|
||||||
_P9K_LINE_PREFIX_LEFT[2,-2]=$_P9K_RETVAL${^_P9K_LINE_PREFIX_LEFT[2,-2]}
|
_P9K_LINE_PREFIX_LEFT[2,-2]=$_P9K_RETVAL${^_P9K_LINE_PREFIX_LEFT[2,-2]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue