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\] '

posted on 2018-07-10 09:43  iokde.com  阅读(4634)  评论(0编辑  收藏  举报

导航