- Open file:
nano ~/.bashrc
- Add to end of file:
PS1="\[$(tput bold)\]\[\033[38;5;9m\]\u\[$(tput sgr0)\]\[\033[38;5;7m\]@\[$(tput bold)\]\[\033[38;5;171m\]\H\[$(tput sgr0)\]\[\033[38;5;7m\]:\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;41m\]\w\[$(tput sgr0)\]\\$ \[$(tput sgr0)\]"
- Restart bash with:
source ~/.bashrc
user@machine:~/folder$ cd ..
User = red (bold)
@ = gray (bold)
machine = purple (bold)
: = gray
~/folder = light green (bold)
$ = white
Visit this site and create your own bash color scheme:
http://bashrcgenerator.com/