linux command prompt color

 

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"

Guess you like

Origin www.cnblogs.com/flashfish/p/12015971.html