Using the solarized color scheme in MAC OS X terminal

Source: Internet
Author: User

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

Using the solarized color scheme in MAC OS X terminal

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.