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 *