My prompt 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
\] but the prompt writes over itself and the prompt becomes corrupt making a mess of terminal input.
mkdir - p test/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ cd 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?