终端颜色1
cd ~
vim .bash_profile
内容
# for color
export CLICOLOR=1
# \h:\W \u\$
export PS1='\[\033[01;33m\]\u@\h\[\033[01;31m\] \W\$\[\033[00m\] '
# grep
alias grep='grep --color=always'
需要重新打开终端
效果
2.SP1不生效
参考:添加链接描述
cd ~
vim .bash_profile
内容
# for color
export CLICOLOR=1
# \h:\W \u\$
export PS1='\[\033[01;33m\]\u@\h\[\033[01;31m\] \W\$\[\033[00m\] '
# grep
alias grep='grep --color=always'
需要重新打开终端
效果
参考:添加链接描述