[Q] Android bash prompt corrupt with long pwd
I just asked this on Stack Overflow
but I'll try here too.
my PS1 is:
export PS1='\[\e[01;32m\]\u@\h\[\e[01;34m\] \w \$\[\e[00m\] '
I think I have escaped all non-printing chars correctly with \[ and \] but the prompt writes over itself and the prompt becomes corrupt making a mess of terminal input.
mkdir - p test/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/
It's definitely to do with the colors as:
export PS1='\u@\h \w \$ '
Gives me a working prompt. How can I fix it?
Sent from my GT-N7100 using Tapatalk 4