Mac Terminal Color Matching

Source: Internet
Author: User
Tags set background git clone

Address: https://github.com/altercation/solarized

Http://bbs.feng.com/read-htm-tid-10259499.html

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.gitterminal/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
<ignore_js_op>


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 ~/.VIMRC
Syntax enable
Set Background=dark
ColorScheme solarized
Iterm2 and 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_profile
Export Clicolor=1
Vim and Solarized
<ignore_js_op>

Mac Terminal Color Matching

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.