iterm2字符输入换行遮挡问题

来源: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\] '

猜你喜欢

转载自www.cnblogs.com/lavin/p/9287333.html