首页 > 代码库 > Linux Shell Color Solution

Linux Shell Color Solution

Editor  ~/.bash_profile

 

alias ls="ls -G" 

# for color

export CLICOLOR=1

# \h:\W \u\$

export PS1=‘\[\033[01;33m\]\u@\h\[\033[01;31m\] \W\$\[\033[00m\] ‘

 

注:如果没有生效: $source .bash_profile

Linux Shell Color Solution