6 lines
231 B
Bash
6 lines
231 B
Bash
clrreset='\e[0m'
|
|
clrwhite='\e[1;37m'
|
|
clrgreen='\e[1;32m'
|
|
clrred='\e[1;31m'
|
|
export PS1="\[$clrred\][$USER@$HOSTNAME]\[$clrwhite\] \w \`if [ \$? = 0 ]; then echo -e '\[$clrgreen\]'; else echo -e '\[$clrred\]'; fi\`\\$ \[$clrreset\]"
|