來源:http://wonderffee.github.io/blog/2013/08/15/solve-new-line-problem-in-terminal/
.bash_profile中 進行如下配置:
PS1="\[\e[0;31m\] \u@\h \W\$ \[\e[m\] "
之前的輸入命令 不到屏幕末端 自動換行覆蓋的問題得到解決。
其他:
終端的顏色顯示,最終在.bash_probile里做的設置如下:
COLOR_BOLD="\[\e[1m\]" COLOR_DEFAULT="\[\e[0m\]" export CLICOLOR=1 export GREP_OPTIONS="--color=auto" PS1='\[\e[01;33m\]\u@\h \W\$\[\e[m\] '
