Transferred from: http://www.vpsee.com/2013/09/use-the-solarized-color-theme-on-mac-os-x-terminal/
Believe that long-term immersion in the terminal and the code of the small partners have their own favorite color scheme. Used to be a simple, readable terminal.app color scheme, the MacBook Pro with Retina display found this color time to look a little tired. Constantly someone recommend solarized, read some, feel good, decided to try.
Solarized is currently the most complete terminal/editor/ide color scheme, covering almost all major operating systems (Mac OS X, Linux, Windows), editors and Ides (Vim, Emacs, Xcode, TextMate, Ne Tbeans, Visual Studio, etc.), terminal (ITerm2, Terminal.app, Putty, etc.). Similar projects also include tomorrow Theme.
To comfortably use the command line (at least) in a Mac OS X terminal, you need to color 3 tools, terminal, VIM, and LS. First download solarized:
$ git clone git://github.com/altercation/solarized.git
Terminal/iterm2
Mac OS X comes with Terminal and free iTerm2 are very useful tools, ITERM2 can be cut into multiple windows, more convenient.
If you are using Terminal, under Solarized/osx-terminal.app-colors-solarized, double-click solarized Dark ansi.terminal and solarized light ANSI The. Terminal will automatically import two color schemes Dark and light into the Terminal.app.
If you are using ITerm2, double-click solarized dark.itermcolors and solarized light.itermcolors under solarized/iterm2-colors-solarized Two files will be able to import the configuration file into the iTerm.
Vim
Vim is best matched to the color of the terminal, otherwise it would be awkward to use the command line vim in Terminal/iterm2:
$ cd solarized$ CD vim-colors-solarized/colors$ mkdir-p ~/.vim/colors$ cp solarized.vim ~/.vim/colors/$ VI ~/.vimrcsyntax Enableset Background=darkcolorscheme solarized
Ls
Mac OS X is based on FreeBSD, so some tools ls, top, etc. are BSD that set, LS is not GNU ls, so even if the TERMINAL/ITERM2 is configured with color, but on the Mac-typed LS command will not be highlighted, you can install Coreutils to solve (brew install coreutils), but if the LS color is not picky, there is a simple way to output clicolor=1 in. Bash_profile:
$ VI ~/.bash_profileexport clicolor=1
MAC Vim Iterm2 color scheme