Bash : colored prompt

Every now and then I have to set up a new box for myself.
And I always forget how to set a nice bash prompt.

export PS1='\e[0;32m[\u@\h:\w]\e[m\n\$'

Here it is now. So I don’t forget.

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=""> <s> <strike> <strong>