tmux prints long commands to beginning of same line without line break [duplicate]
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.
The answer might be the content of your TERM variable.What's the answer to
echo $TERM
?
Get the value of TERM before starting tmux and compare it with the value withing tmux!Try setting it to some other value like vt100 or xterm with
export TERM=vt100
or
export TERM=xterm