New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iTerm2 主题配置 #8

Open
Unknwon opened this Issue Nov 22, 2016 · 0 comments

Comments

1 participant
@Unknwon
Owner

Unknwon commented Nov 22, 2016

日期:2014-07-11
更新:2015-11-11

至于 iTerm2 是什么,可以参考 我在用的 mac 软件(1)--终端环境之 iTerm2,我也是看这篇入门的。当初刚开始用的时候网上还能找到如何配置 iTerm2 的主题,可惜现在找不到了。虽然步骤简单,但是每次要重新弄的时候没有参考依据太挺蛋疼,顺便给各位有同样需求的人指下路。

以经典的谷歌 Material Design 主题为例,这里我找到两个色系:

接下来是导入主题文件,进入以下界面:

0008_import

选择下载后的解压文件即可。

然后就是终端的配色,编辑 ~/.bash_profile 文件,在文件顶部加入以下内容(如果使用的是 ZSH 则不需要这步操作):

# iterm2 color configuration
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

然后:

source ~/.bash_profile

很好,大工告成!

0008_iterm_screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment