sparkydogX / sparkydogx_blog_comment

Comments for https://sparkydogx.github.io
1 stars 0 forks source link

解决Terminal中命令行覆盖的问题 | SparkydogX Blog #28

Open sparkydogX opened 5 years ago

sparkydogX commented 5 years ago

https://sparkydogx.github.io/2017/10/07/terminal-cover/

在使用Ternimal时,常常会发现命令行过长时,之前输入的内容在显示时会被覆盖掉。为了解决这一问题,可以在~/.bash_profile中添加如下语句:PS1='[\e[01;33m]\u@\h \W\$[\e[m] '