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:
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:
| Color | Code | 
| Black | 0;30 | 
| Blue | 0;34 | 
| Green | 0;32 | 
| Cyan | 0;36 | 
| Red | 0;31 | 
| Purple | 0;35 | 
| Brown | 0;33 | 
| Blue | 0;34 | 
| Green | 0;32 | 
| Cyan | 0;36 | 
| Red | 0;31 | 
| Purple | 0;35 | 
| Brown | 0;33 | 
Comments
Post a Comment