Change Bash Prompt
Posted by Dave Eddy on Sep 20 2010I configured the prompt to have a more custom feel on my servers, by adding the
following line to my ~/.bashrc
file.
Mike originally gave me the code, I just modified it to change the colors and the layout, check out his site at http://lightsandshapes.com
To use this prompt design, add this line to your ~/.bashrc
file.
PS1='\[[1;32m\]\u\[[0;36m\]@\[[0;31m\][\h]\[[0;37m\]:\[[0;34m\]\w/\[[0;32m\]\$\[[0m\] '