I am using
tmux-2.6 and my shell is bash. Outside tmux, line wrapping work perfectly and the text is moved to the next line. In tmux, this does not work though. I googled for a long time, but did not find any working fixes. In my
~/.bashrc I have
export PS1="\[\e[1;92m\]\u@\h: \w \\$ \[\e[m\]" export PS2='> '
I removed them and tried again, but the result was the same. I am on Slackware 14.2 and it seems that the problem is related to some system setting because with the same
~/.tmux.conf, line wrapping works as expected on Ubuntu 16.04.