Apr 22
How to fix bash linewrap issues
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 commentsNo Comments
Leave a comment
