Use the Solarized color scheme on Mac OS X to make the interface more appealing

Source: Internet
Author: User
Tags set background git clone

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 screenshots, 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 ~ /. Vimrc
Syntax enable
Set background = dark
Colorscheme 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_profile
Export 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.