I always have a problem with terminal emulator when using bash but not zsh. The problem can be produced like this,
- Open any terminal emulator (gnome-terminal, xfce4-terminal, etc)
- Run any command with less, such as “ls |less”
- Resize the window to larger size, such as maximize
- Quit less
- Type anything in the terminal, then the text will not wrap to new line if the text length beyond the window size before resie. And it will overflow to the same line and overwrite the prompt.
This problem can be solved by adding “shopt -s checkwinsize” in .bashrc.