Maccos X-terminal solarized Color Scheme
I believe that friends who have been immersed in terminals and code for a long time have a set of their favorite color schemes. I used to use the simple and suitable terminal. app color scheme. After switching to the MacBook Pro with Retina Display, I found that the color scheme took a long time and looked tired. Someone constantly recommends solarized. After reading some of them, I feel pretty good. I decided to give it a try.
Solarized is currently the most complete terminal/Editor/ide color project, covering almost all mainstream operating systems (Mac OS X, Linux, Windows), editors and IDE (Vim, emacs, xcode, textmate, netbeans, Visual Studio, etc.), terminal (iterm2, terminal. APP, putty, etc ). Similar projects include tomorrow theme.
To use the command line (at least) comfortably on the Mac OS X terminal, you need to color the three tools, terminal, Vim, and Ls. First download solarized:
$ git clone git://github.com/altercation/solarized.git
Terminal provided by Mac OS X and free iterm2 are both easy-to-use tools. iterm2 can be split into multiple windows for better convenience.
If you are using terminal, double-click solarized dark ANSI under solarized/osx-terminal.app-colors-solarized. terminal and solarized light ANSI. terminal will automatically import the two color schemes Dark and Light to terminal. app.
If you are using iterm2, double-click the solarized dark. itermcolors and solarized light. itermcolors files under the solarized/iterm2-colors-solarized to import the configuration file to iterm.
The color of VIM is best consistent with that of the terminal. Otherwise, it will 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
Mac OS X is based on FreeBSD, so some tools such as LS and top are BSD. ls is not GNU ls, so even if Terminal/iterm2 is configured with color, however, if you press the LS command on the Mac, it will not display the highlighted image. You can install coreutils to solve this problem (brew install coreutils). However, if you are not picky about the LS color, you can simply install it. output clicolor = 1 in bash_profile:
$ vi ~/.bash_profileexport CLICOLOR=1