Change Ubuntu prompt color

Source: http://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/


For the impatient:
export PS1="\e[0;33m\[\e]0;\u@\h:\w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$ \e[m"


Now this will change your prompt color instantly if you are using putty, I don't know about other tools or if you are connected to the server.


This should be the color code:


ColorCode
Black0;30
Blue0;34
Green0;32
Cyan0;36
Red0;31
Purple0;35
Brown0;33
Blue0;34
Green0;32
Cyan0;36
Red0;31
Purple0;35
Brown0;33

Comments

Popular posts from this blog

Testing SOAP services using pingdom