Change Bash Prompt

I 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 lightsandshapes.com

To use this prompt design, add this line to your ~/.bashrc file.

PS1='\[\e[1;32m\]\u\[\e[0;36m\]@\[\e[0;31m\][\h]\[\e[0;37m\]:\[\e[0;34m\]\w/\[\e[0;32m\]\$\[\e[0m\] '

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>