Archive for the ‘colors’ tag
Bash shell prompt colors
Here are the colors available for use in the bash shell prompt:
| Black | 01;30 |
| Blue | 01;34 |
| Brown | 01;33 |
| Cyan | 01;36 |
| Green | 01;32 |
| Red | 01;31 |
| Pink | 01;35 |
| Yellow | 01;33 |
This is my shell prompt:
PS1='\[\033[01;32m\]\u@\h \[\033[01;35m\]\W \$ \[\033[00m\]'
Which produces output on the form user@computer DIRECTORY $. I use different colors for different computers/users.