When typing a long command in tmux instead of printing to the next line the end of the command shows up at the beginning of the same line.
So instead of
user@computer:~$ aaaaaaaaaaa
aaaaa
this happens
aaaaacomputer:~$ aaaaaaaaaaa
Using the standard terminal everything is fine.
If you have unescaped characters in your PS1 variable it might not wrap lines correctly.
Try
export PS1="\u@\h-\\$\[$(tput sgr0)\]"
If that fixes your problem you need to update your .bashrc
file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With