Results 1 to 5 of 5

Thread: Colourful bash

  1. #1

    Default Colourful bash

    So I've just installed 13.1 after a loooong time away from anything suse based. And I was wondering if there was a simple way to make bash more colourful, much like the various flavours of Ubuntu do?

    The last thing I want is to start having to craft my own bash config if a simple and quick option exists.

  2. #2

    Default Re: Colourful bash

    I don't think there's a simple option. You may want to copy the .bashrc from Ubuntu (or take a look at https://gist.github.com/marioBonales/1637696). You'll probably have to modify it a little bit, but it should give you the color scheme you are looking for.

  3. #3
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Colourful bash

    Quote Originally Posted by battletux View Post
    So I've just installed 13.1 after a loooong time away from anything suse based. And I was wondering if there was a simple way to make bash more colourful, much like the various flavours of Ubuntu do?

    The last thing I want is to start having to craft my own bash config if a simple and quick option exists.
    You need to look at any of my bash scripts where they ALL include color:

    To view Log Files: S.L.A.V.E. - SuSE Logfile Automated Viewer Engine - Version 2.50 - Blogs - openSUSE Forums

    To work with Grub 2: GNU Grub2 Command Listing Helper with --help & Input - Blogs - openSUSE Forums

    To work with Zypper: Zypper Command - Zypper Package Management Menu System - Version 2.00 - Blogs - openSUSE Forums

    To work with systemd: SysdCmd - systemd Command Help/Config Editor - Blogs - openSUSE Forums

    To write bash scripts: N.S.F. - New Script File, Bash Script File Header Creator - Version 2.6 - Blogs - openSUSE Forums

    To Edit System Files: SYSEdit - System File Editor - Version 1.50 - Blogs - openSUSE Forums

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  4. #4
    Join Date
    Nov 2013
    Location
    Canada
    Posts
    19

    Default Re: Colourful bash

    Quote Originally Posted by battletux View Post
    So I've just installed 13.1 after a loooong time away from anything suse based. And I was wondering if there was a simple way to make bash more colourful, much like the various flavours of Ubuntu do?

    The last thing I want is to start having to craft my own bash config if a simple and quick option exists.
    Not that hard, really. This is pretty concise: Tip: Prompt magic

    HTH

  5. #5
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Colourful bash

    Quote Originally Posted by naughtypine View Post
    Not that hard, really. This is pretty concise: Tip: Prompt magic

    HTH
    This link is for setting the bash prompt color, while my bash scripts use color for all display functions. Each bash script is an example of how it can be done.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

Posting Permissions

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