Archive for April, 2009

How to fix bash linewrap issues

April 22nd, 2009 | Category: Uncategorized

So I was having some problems with bash wrapping lines back over the current line that it was on.  Come to find out this was due to the colors I used in my PS1 variable.

To fix this, you need to change from a color identifier like

red=’\e[0;31m'

to something like this

red='\[\033[0;31m\]‘

This should fix your problem with the linewrap issues

No comments