對于還沒有安裝過iTerm2的
安裝iTerm2: Download,解壓后直接打開
以經(jīng)典的谷歌 Material Design 主題為例
這里我找到兩個色系:
- 完全遵循官方色調(diào)的:material-design-colors.itermcolors
- 深色調(diào)修改版:material-dark.itermcolors
接下來是導(dǎo)入主題文件
打開iTerm2 - Preferences - Profiles - Colors - Presets - Import 下載過的色系。
然后就是終端的配色
編輯 ~/.bash_profile 文件,在文件頂部加入以下內(nèi)容(如果使用的是 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