I did a simple PS1 assignment
PS1="\e[0;31m[\W]\$ \e[m "
All I wanted to do was to change the prompt color and display only the relative path. However this messes up the CLI. For example, when browsing history with the
↑ it crops and overlaps the display. When i type a long command the cursor moves to the beginning of the screen overlapping with the prompt display itself. What have I done wrong?