linux命令提示符上色
vi /etc/profile
RED='\[\e[31;1m\]'
Yello='\[\e[33;1m\]'
Green='\[\e[32;1m\]'
End='\[\e[0m\]'
Pur='\[\e[35;1m\]'
PS1="$Yello[$End$RED\u$End$Green@$End$Yello\h$End $Green\w$End$Yello]${End}${Pur}\\$ $End"
vi /etc/profile
RED='\[\e[31;1m\]'
Yello='\[\e[33;1m\]'
Green='\[\e[32;1m\]'
End='\[\e[0m\]'
Pur='\[\e[35;1m\]'
PS1="$Yello[$End$RED\u$End$Green@$End$Yello\h$End $Green\w$End$Yello]${End}${Pur}\\$ $End"