simplify right prompt prefix and suffix

pull/70/head
romkatv 6 years ago
parent 154bc2e1ff
commit 54eb7c7dec

@ -2371,7 +2371,8 @@ _p9k_init() {
_p9k_get_icon LEFT_SEGMENT_END_SEPARATOR _p9k_get_icon LEFT_SEGMENT_END_SEPARATOR
_P9K_LEFT_SUFFIX+=$_P9K_RETVAL _P9K_LEFT_SUFFIX+=$_P9K_RETVAL
_P9K_RIGHT_SUFFIX+="%{$reset_color%}%E" _P9K_RIGHT_SUFFIX+='%f%b%k'
_P9K_RIGHT_PREFIX+='%f%b%k'
if [[ $POWERLEVEL9K_PROMPT_ON_NEWLINE == true ]]; then if [[ $POWERLEVEL9K_PROMPT_ON_NEWLINE == true ]]; then
_p9k_get_icon MULTILINE_FIRST_PROMPT_PREFIX _p9k_get_icon MULTILINE_FIRST_PROMPT_PREFIX
@ -2392,8 +2393,6 @@ _p9k_init() {
_P9K_LEFT_PREFIX+="%f%b%k" _P9K_LEFT_PREFIX+="%f%b%k"
fi fi
_P9K_RIGHT_PREFIX+="%f%b%k"
if [[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]]; then if [[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]]; then
repeat ${POWERLEVEL9K_PROMPT_ADD_NEWLINE_COUNT:-1} { _P9K_LEFT_PREFIX=$'\n'$_P9K_LEFT_PREFIX } repeat ${POWERLEVEL9K_PROMPT_ADD_NEWLINE_COUNT:-1} { _P9K_LEFT_PREFIX=$'\n'$_P9K_LEFT_PREFIX }
fi fi

Loading…
Cancel
Save