I want to use an American flag emoji in my bash prompt (i.e. PS1 environment variable). However, the American flag emoji causes the terminal cursor to offset an extra character to the right.
is comprised of two unicode characters, and . I believe terminal is converting this to a mono-spaced emoji character (the flag), yet still allocating space for two characters. How can I achieve my expected cursor position?
I want:
Desktop akirna ls|
I get:
Desktop akirna ls |
<< weird space offset before cursor
My ~/.bash_profile
is:
export PS1=' \W \u '