caiogondim / bullet-train.zsh

:bullettrain_side: An oh-my-zsh shell theme based on the Powerline Vim plugin
MIT License
2.82k stars 383 forks source link

Multiple character PROMPT_CHAR #161

Closed jzck closed 7 years ago

jzck commented 8 years ago

Hi, I've started to use emojis as prompt_char, they are big and need an extra space, but this isn't allowed because of :

if [[ ${#BULLETTRAIN_PROMPT_CHAR} -eq 1 ]]; then
    bt_prompt_char="${BULLETTRAIN_PROMPT_CHAR}"
fi

So i'm wondering if this bit of code is superfluous or am i doing it wrong ?

dawikur commented 7 years ago

Code is simply assuming prompt that prompt will be one character. I think we can mark "Support multi-char prompt" as enhancement :)