Wednesday, November 11, 2015

Mac term 颜色配置

我喜欢Shell 不同的颜色的色值。我是一个追求完美的汉子,哈哈。最近,终于梦寐以求了,一直没有时间捯饬 shell 的配色, Come on

第一步: 下载term2
http://www.iterm2.com/features.html

第二步:
配色方案: 
永久配置: 不建议使用
使用你最喜爱的编辑器打开.pash_profile文件。~/.bash_profile是bash shell中当前登录用户的配置文件。Bash是“终端”中默认的shell。
你可以使用下面的命令在terminal打开它:
$ vim ~/.bash_profile
然后将下面的代码拷贝到此文件中。
#enables colorin the terminal bash shell export
CLICOLOR=1
#sets up thecolor scheme for list export
LSCOLORS=gxfxcxdxbxegedabagacad
#sets up theprompt color (currently a green similar to linux terminal)
exportPS1='
\033[01;32m
\u@\h
\033[00m
:
\033[01;36m
\w
\033[00m
\$ '

#enables colorfor iTerm
export TERM=xterm-color

灵活的配置方案:
打开iTerm2的使用偏好设置,选择profiles,然后选择Colors标签,然后进行颜色配置。用户也可以点击“Load Presets…”按钮加载一些经典的配色方案。

配色方案:

但是,想找到自己喜欢的配色方案真的好难!



附录:
http://www.iterm2.com/features.html

2  http://iterm2colorschemes.com

3  http://blog.csdn.net/huangbowen521/article/details/7832180


No comments:

Post a Comment