All I want to do is. . .

. . .add color to my Terminal.

OS:

Let's make our `ls` and `grep` colorful.
Contributors: sloria Updated: 07/14/13

Do these first:

  • Install Homebrew
    # In your Mac Terminal, run:
    $ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    
    # In your ~/.bashrc, ~/.bash_profile, or ~/.zshrc (for zsh users)
    # ...
    export PATH=/usr/local/bin:$PATH
    
    $ brew doctor
    
     [full instructions]

Bash

# If you're using the bash shell, add the following to your 
# ~/.bash_profile file.

# ~/.bash_profile
# Colorful ls and grep
export CLICOLOR=1
export GREP_OPTIONS='--color=auto'
source "`brew --prefix grc`/etc/grc.bashrc"

Zsh

# Another simple option is to use oh-my-zsh which comes with
# many different themes out of the box, as well as the added 
# functionality of the zsh shell

# Check out the project here: https://github.com/robbyrussell/oh-my-zsh

# Install zsh like so:
$ curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

Then change your ZSH_THEME setting in ~/.zshrc.

# ~/.zshrc

ZSH_THEME="nanotech"

# Available themes here: https://github.com/robbyrussell/oh-my-zsh/wiki/themes

Raw: add-color-to-terminal.md


If you have suggestions, corrections, or content to contribute, fork us at our Github repo or open an issue.

Licensed under the CC-SA.