mac iterm2配置

iterm2的配置分为以下几个部分:linux

1. 字体大小的配置:shell

iTerm->Preferences->Profiles->Text->Regular Font: 我在这里设置成24pt。vim

2. 配色:bash

1)修改~/.bash_profile以下所示:less

#enables colorin the terminal bash shell export
export CLICOLOR=1

#sets up thecolor scheme for list export
export LSCOLORS=gxfxcxdxbxegedabagacad

#sets up theprompt color (currently a green similar to linux terminal)
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '

#enables colorfor iTerm
export TERM=xterm-256color

执行source ~/.bash_profile生效。注意这里只是修改文件、文件夹等的显示颜色及$符号以前内容的颜色。编辑器

2)修改背景前景色,即选择一种配色方案,执行方法以下:字体

在Preferences->Profiles->Colors的load presets能够选择某个配色方案。也能够本身下载.spa

下载连接为:http://iterm2colorschemes.com/,下载zip包解压后,在schemes目录下是一些后缀为.itemcolors的文件,如何导入在连接的Installation Instructions里面有。
.net

 

3. 执行以上操做时,使用vim编辑代码的颜色仍是单纯的白色,这是由于vim编辑器的颜色和前面的配色方案是独立的,具体能够以下操做:code

执行vim ~/.vimrc,在.vimrc文件中添加以下内容:

syntax on
set number
set ruler

执行source ~/.vimrc操做.

效果图以下所示:

 

 

参考连接:

1. http://blog.csdn.net/lainegates/article/details/38313559

2. http://blog.csdn.net/wirelessqa/article/details/12584043 

相关文章
相关标签/搜索