Bash color output
I can't take anymore of this grey.
I have set PS1 to the following, which gives me a colorful prompt:
Code:
PS1="\[\e[01;32m\]\u:\[\e[0m\]\[\e[00;37m\] \[\e[0m\]\[\e[01;36m\]\w\[\e[0m\]\[\e[00;37m\] \[\e[0m\]\[\e[01;31m\]\$\[\e[0m\]"
But i want colorized output.
For instance:
Normal output = #FFFFFF
Errors = bright red, bold
Warnings = bright yellow, bold
package/application names = bold
messages = bright blue, bold
How can this be done?
Last edited by Tristan_Williams; January 2nd, 2014 at 05:45 AM.
Things to remember :
- Use proper english
- Comment your code
- Keep background information and introductions to a minimum
Bookmarks