Add color to your favorite shell !
How to set PS1 the best way ? Add this your .bachrc file on your linux machine
Bash will display prompt according to PS1 variable
txtblk='\[\e[0;30m\]' # Black - Regular txtred='\[\e[0;31m\]' # Red txtgrn='\[\e[0;32m\]' # Green txtylw='\[\e[0;33m\]' # Yellow txtblu='\[\e[0;34m\]' # Blue txtpur='\[\e[0;35m\]' # Purple txtcyn='\[\e[0;36m\]' # Cyan txtwht='\[\e[0;37m\]' # White txtrst='\[\e[0m\]' # Text Reset PS1="$txtwht\t [$txtred\u@$txtgrn\h$txtwht]:$txtblu\w $txtrst $"
The result :
15:17:48 [franck@localhost]:~/Documents$