Você pode fazer isso de duas maneiras.
Primeiro, e talvez mais fácil, defina as cores em PuTTy da configuração
Suasegundaopçãoéescrevercoresem.bashrc.
Istoéoqueeuuso(em.bashrc)
###################################Colors###################################BLACK='\e[0;30m'BLUE='\e[0;34m'GREEN='\e[0;32m'CYAN='\e[0;36m'RED='\e[0;31m'PURPLE='\e[0;35m'BROWN='\e[0;33m'LIGHTGRAY='\e[0;37m'DARKGRAY='\e[1;30m'LIGHTBLUE='\e[1;34m'LIGHTGREEN='\e[1;32m'LIGHTCYAN='\e[1;36m'LIGHTRED='\e[1;31m'LIGHTPURPLE='\e[1;35m'YELLOW='\e[1;33m'LIGHTYELLOW='\e[0;33m'WHITE='\e[1;37m'NC='\e[0m'#NoColor#SetLessColorsforManPagesif[-x/usr/bin/less];thenexportLESS_TERMCAP_mb=$'\E[01;31m'#beginblinkingexportLESS_TERMCAP_md=$'\E[01;38;5;74m'#beginboldexportLESS_TERMCAP_me=$'\E[0m'#endmodeexportLESS_TERMCAP_se=$'\E[0m'#endstandout-modeexportLESS_TERMCAP_so=$'\E[38;5;246m'#beginstandout-mode-infoboxexportLESS_TERMCAP_ue=$'\E[0m'#endunderlineexportLESS_TERMCAP_us=$'\E[04;38;5;146m'#beginunderlinefi#NEW.FANCYPROMPTif[[$EUID==0]];thenPS1='\[3[01;31m\]\u\[3[01;30m\]@\[3[01;34m\]\h\[3[01;30m\]:\[3[01;34m\]\w\[3[00m\]\$'#REDelsePS1='\[3[01;32m\]\u\[3[01;30m\]@\[3[01;34m\]\h\[3[01;30m\]:\[3[01;34m\]\w\[3[00m\]\$'#Green#PS1='\[3[01;34m\]\u\[3[01;30m\]@\[3[01;34m\]\h\[3[01;30m\]:\[3[01;34m\]\w\[3[00m\]\$'#Bluefi
Vejatambémo