I have the following bash prompt:
YELLOW="\[\033[0;33m\]" GREEN="\[\033[0;32m\]" RESET='\e[0m' export PS1="$GREEN[\W]$YELLOW \$(__git_ps1 \"(%s) \")$RESET\\$ "
It looks like this:
Which is what I want. However, when I enter a long line, it does not break the line at all but rather overwrites the current one from the beginning of the line. When this happens and I hit backspace, everything in that line will disappear. How can I fix this?