Bash multi-line input won't wrap correctly
I decided to change my bash prompt to be more functional, and I changed it to:
PS1="\e[31;1m\] \n\n \w \! \u@\h \A \d\n\n>>> \e[0m"
After changing it, the word-wrap function of bash no longer works correctly. Instead of making a new line and entering text there when the command is too long for the first line, the second line overwrites the first, which is unreadable and causes messy situations when trying to delete characters. How should I fix this?
|