Eliminating double space if prompt on one line

This commit is contained in:
Jiri Tyr
2016-03-18 17:59:57 +00:00
parent d4a8e06419
commit ce5d5fb78e

View File

@@ -570,8 +570,8 @@ prompt_char() {
bt_prompt_char="%(!.%F{red}#.%F{green}${bt_prompt_char}%f)" bt_prompt_char="%(!.%F{red}#.%F{green}${bt_prompt_char}%f)"
fi fi
if [[ $BULLETTRAIN_PROMPT_SEPARATE_LINE == false ]]; then if [[ $BULLETTRAIN_PROMPT_SEPARATE_LINE == false ]]; then
bt_prompt_char=" ${bt_prompt_char}" bt_prompt_char="${bt_prompt_char}"
fi fi
echo -n $bt_prompt_char echo -n $bt_prompt_char