item2是mac下非常好用的一款终端,网上很多配色的教程都不好用。现在给大家分享一个好用的配色方案。
1> 配色博客: http://blog.csdn.net/qdujunjie/article/details/39315813
2> 常用快捷键
⌘ + 数字 在各tab标签直接来回切换
⌘ + f 搜索
⌘ + r 相当于clear
输入开头命令后 按⌘ + ;会自动列出输入过的命令
ctrl + u 清空当前行
3>vim ~/.bash_profile 编辑配置文件
粘贴以下代码
#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(网上很多此处都不是用256color)
export TERM=xterm-256color
在Preferences->Profiles->Colors的load presets可以选择某个配色方案。也可以自己下载。在网站http://iterm2colorschemes.com/,几乎可以找到所有可用的配色方案。大家自己选择吧