Results 1 to 3 of 3

Thread: Bash color output

  1. #1
    Join Date
    Oct 2013
    Beans
    336
    Distro
    Xubuntu 14.10 Utopic Unicorn

    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

  2. #2
    Join Date
    May 2005
    Location
    Lyon, France
    Beans
    916
    Distro
    Ubuntu Development Release

  3. #3
    Join Date
    Jan 2014
    Beans
    1

    Re: Bash color output

    Outputs are not managed by Shell but by programs themselves.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •