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
Ubuntu:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;33;40m\]\u\[\033[00;33;40m\]@\[\033[01;33;40m\]\h\[\033[00;31;40m\]:\[\033[00;31;40m\]\w \[\033[01;31;40m\]\$ \[\033[01;32;40m\]'
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;35;40m\]\u\[\033[00;00;40m\]@\[\033[01;35;40m\]\h\[\033[00;31;40m\]:\[\033[00;00;40m\]\w \[\033[01;32;40m\]\$ \[\033[01;36;40m\]'
...