I'm having problems with bash and PS1. I like to have my bash prompt a different color than the rest of my terminal, so I have PS1 set as follows in .bashrc:
export PS1="\e[0;36m\]\u@\h: \w>\e[0m\]"
which gives me a prompt that looks like this:
Code:
brt381@cytosine: ~>
... which is how I want it. However, I have the following problem: whenever I type a long command, instead of scrolling forward to this next line as it should, bash instead starts overwriting the current line! For example, if I type "this is a long command which will stay on this line", this is what happens:
Code:
ine381@cytosine: ~>this is a long command which will stay on this l
This is extremely irritating. If I remove the parts of the PS1 above that involve color, this problem disappears. However, I like having the prompt a different color and would like to keep it that way. Can anyone identify a problem in the above PS1, or have any other ideas on how this problem might be fixed?
Thanks in advance.