This question already has an answer here:
My question is similar, but different to, this question.
I have created a custom PS1 in my
.bashrc, as follows:
STARTCOLOR='\e[0;36m'; ENDCOLOR="\e[0m" export PS1="\n$STARTCOLOR\u@\h:\! <\t> \w\n\$ $ENDCOLOR"
Which looks like so (but with color, of course):
tony@home:515 <17:04:52> ~/IdeaProjects/SomeProject $ gedit ~/.bashrc
I first noticed the issue when linking my project to my remote git repo. I expected the following (not a real repo, of course):
$ git remote add origin https://firstname.lastname@example.org/tony/someproject.git
But instead got (note that it even overwrote part of my PS1):
project.gitte add origin https://email@example.com/tony/some
The commands still work, even with this visual oddity.
tl;dr When I have long commands that exceed a single line, the second line overwrites the first. Any ideas why?