Results 1 to 11 of 11
  1. #1

    DoubleCap's Avatar
    Member Since
    Feb 12, 2007
    Location
    Northeast US
    Posts
    552
    Specs:
    MacBook 2GHz/2GB/CD
    Color your Mac Terminal?
    Hi, is there a tool that will color the mac terminal? I don't mean the regular change color of the font displayed, but something that will give a look like this: http://www.redhat.com/img/colored_prompt.png ?

  2. #2

    caribiner23's Avatar
    Member Since
    Feb 06, 2005
    Location
    Chicago
    Posts
    1,543
    Specs:
    MacBook Pro Retina 13" • iPhone 6 • iPad Air • and many iPods
    Did you try the Preferences in Terminal?

    Terminal --> Window Settings... -> Color

  3. #3

    RiDE's Avatar
    Member Since
    Sep 13, 2006
    Location
    Colorado
    Posts
    3,570
    Specs:
    Mac's
    Caribiner23 is corect, and if you would like those settings to stay after closing the terminal you need to click "Use as Default".

  4. #4

    DoubleCap's Avatar
    Member Since
    Feb 12, 2007
    Location
    Northeast US
    Posts
    552
    Specs:
    MacBook 2GHz/2GB/CD
    Quote Originally Posted by stonecold View Post
    Hi, is there a tool that will color the mac terminal? I don't mean the regular change color of the font displayed, but something that will give a look like this: http://www.redhat.com/img/colored_prompt.png ?
    No, I know about that already. Did you go to the link I posted? Something that will have a different color for the, let's say, prompt, something different for the actual line you're typing, etc...

  5. #5

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,573
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    http://www.dotfiles.com/index.php?app_id=3

    Various bash startup files. Colored prompts and more.
    One manís theology is another manís belly laugh.
    -Lazarus Long

  6. #6

    RiDE's Avatar
    Member Since
    Sep 13, 2006
    Location
    Colorado
    Posts
    3,570
    Specs:
    Mac's

  7. #7

    DoubleCap's Avatar
    Member Since
    Feb 12, 2007
    Location
    Northeast US
    Posts
    552
    Specs:
    MacBook 2GHz/2GB/CD
    Thanks so far.

    What do I do? How do I get these running?

  8. #8

    cazabam's Avatar
    Member Since
    Jun 06, 2006
    Posts
    1,153
    Specs:
    MacBook 2.0GHz White, 512MB RAM, 60GB HDD
    A quick google for 'bash prompt colour' brings back loads of tutorials and references. It's exactly the same for OS X as it is for just about any flavour of Linux or BSD

  9. #9

    voiceofra's Avatar
    Member Since
    Mar 02, 2007
    Location
    St Helens, OR, USA
    Posts
    250
    Specs:
    MacBook CoreDuo 2Ghz 768M RAM
    open terminal
    make sure you're in your home directory
    open .profile with your favorite terminal editor (I'ma vi or nano kinda guy)
    add alias ls = "ls -G".

  10. #10

    DoubleCap's Avatar
    Member Since
    Feb 12, 2007
    Location
    Northeast US
    Posts
    552
    Specs:
    MacBook 2GHz/2GB/CD
    I'm in my home directory, and I type in "nano .profile" but nothing shows up.. only a blank text editor.

  11. #11

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,573
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    Thats because it's not there by default. Try the following:
    Copy this:

    # ~/.bashrc: executed by bash(1) for non-login shells.

    export PS1='\u@\hw$ '
    umask 022

    ##########################################
    #setting up file completion
    #

    if [ -f ~/.bash_completion ];
    then
    . ~/.bash_completion;
    fi


    ############################################
    # You may uncomment the following lines if you want 'ls' to be colorized:
    #

    export CLICOLOR='true'
    export LSCOLORS="gxfxcxdxbxegedabagacad"

    ###########################################
    # set up aliases
    #

    alias ll='ls -laghF'
    alias l='ls -laghF'
    alias grep='grep -n'
    alias netconns='netstat -a -f inet'
    alias cd..='cd ..'
    alias ..='cd ..'
    alias cls='clear'
    # alias vi='vim'
    # alias c++='g++'
    # alias cc='gcc'
    #
    # Some more alias to avoid making mistakes:
    # alias rm='rm -i'
    # alias cp='cp -i'
    # alias mv='mv -i'
    alias ttop='top -ocpu -R -F -s 2 -n30'


    Now type "pico .bashrc" (or you can use nano) without the quotes.
    Paste the above into it.
    Save. Quit and restart Terminal.
    Your files and directories should now be in color.

    You can set different colored prompts by using escape characters. Just add the codes to .bashrc. I use the one called "bash_styles". It lets you change prompts on the fly without having to restart Terminal.
    One manís theology is another manís belly laugh.
    -Lazarus Long

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. color on the terminal
    By zero17 in forum OS X - Development and Darwin
    Replies: 25
    Last Post: 05-02-2011, 03:20 PM
  2. How to configure MacOSX terminal color
    By yinglcs in forum OS X - Operating System
    Replies: 2
    Last Post: 07-20-2009, 09:54 PM
  3. Color in Terminal with Python
    By pae in forum OS X - Operating System
    Replies: 0
    Last Post: 07-15-2008, 07:31 PM
  4. Color "ls" Output in Terminal
    By mac57 in forum OS X - Operating System
    Replies: 7
    Last Post: 02-28-2007, 10:41 AM

Posting Permissions

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