Problem
In my terminal, I like to have the words username@machinename colored. This makes it more easy to separate different commands.
Solution
Add following rule(s) to ~/.bashrc:
User
- Linux
PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w \$ \[\033[00m\]'
- Mac OS X
PS1='\[\033[1;32m\]\u@\h\[\033[0m\] \[\033[1;36m\]\w\[\033[0m\] $ ' CLICOLOR=1 LSCOLORS=ExFxBxDxCxegedabagacad
root
PS1='\[\033[01;31m\]\u@\h \[\033[01;34m\]\w \$ \[\033[00m\]'
Add new comment