Spero vi piaccia
Questo è da inserire al'inizio di .bashrc con privilegi da admin [->sudo nano .bashrc / da dentro la propria home]
Codice: Seleziona tutto
txtblk='\[\e[0;30m\]' # Nero - Regular
txtred='\[\e[0;31m\]' # Rosso
txtrad='\[\033[38;5;202m\]' # Rosso Chiaro
txtara='\[\033[38;5;214m\]' # Arancio
txtgrn='\[\e[0;32m\]' # Verde
txtylw='\[\e[0;33m\]' # Marrone
txtblu='\[\e[0;34m\]' # Blu
txtazu='\[\033[38;5;81m\]' # Azzurro
txtpur='\[\e[0;35m\]' # Viola
txtcyn='\[\e[0;36m\]' # Ciano
txtwht='\[\e[0;37m\]' # Bianco
bldblk='\[\e[1;30m\]' # Nero - Light
bldred='\[\e[1;31m\]' # Rosso
bldgrn='\[\e[1;32m\]' # Verde
bldylw='\[\e[1;33m\]' # Giallo
bldblu='\[\e[1;34m\]' # Azzurro
bldpur='\[\e[1;35m\]' # Rosa
bldcyn='\[\e[1;36m\]' # Ciano
bldwht='\[\e[1;37m\]' # Bianco
unkblk='\[\e[4;30m\]' # Nero - Underline
undred='\[\e[4;31m\]' # Rosso
undgrn='\[\e[4;32m\]' # Verde
undylw='\[\e[4;33m\]' # Giallo
undblu='\[\e[4;34m\]' # Blu
undpur='\[\e[4;35m\]' # Viola
undcyn='\[\e[4;36m\]' # Ciano
undwht='\[\e[4;37m\]' # Bianco
bakblk='\[\e[40m\]' # Nero - Background
bakred='\[\e[41m\]' # Rosso
bakrad='\[\033[48;5;202m\]' # Rosso Chiaro
badgrn='\[\e[42m\]' # Verde
bakylw='\[\e[43m\]' # Giallo
bakblu='\[\e[44m\]' # Blu
bakazu='\[\033[48;5;81m\]' # Azzurro
bakara='\[\033[48;5;214m\]' # Arancio
bakpur='\[\e[45m\]' # Viola
bakcyn='\[\e[46m\]' # Ciano
bakwht='\[\e[47m\]' # Bianco
txtrst='\[\e[0m\]' # Text Reset
tptbld='\[$(tput bold)\]' # Bold
tptrst='\[$(tput sgr0)\]' # Bold Reset
poi prendete la vostra ps1 e per non cancellarla potreste commentarla con #
infine nella riga sotto aggiungete il vostro codice creato, il mio è il seguente:
Codice: Seleziona tutto
PS1="$txtblk$bakazu\d \t$txtazu$txtrst $tptbld$txtazu\u@\h$txtrst$tptrst $bldblu\W$txtrst $txtblk$bakazu\$$txtrst "
Buon Modding