Use the solarized color scheme on Mac OS X

Source: Internet
Author: User
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/iterm2

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.

  • Vim

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

 

  • Ls

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
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.