Christian Schubert wrote: > PS1='\e[32m$\e[m' Non-printing characters need to be bracked with \[...\] to inform bash that they do not display. Please see the bash documentation in the section on "PROMPTING".
\[ begin a sequence of non-printing characters, which could
be used to embed a terminal control sequence into the
prompt
\] end a sequence of non-printing characters
I believe that will fix your problem.
Bob
