mintty 长命令不换行

更改 PS1 设置,删除结尾换行符。在 .bashrc 下加入

snippet.bash
export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] \[\e[33m\]\w\[\e[0m\]\$ '

参考:https://superuser.com/questions/283236/cygwin-bash-prompt-is-wrapping-lines-on-the-same-line

更改TERM

改为 mintty 似乎解决了问题