1. 首先找到配色文件:
iterm2官網配色方案iTerm2-Color-Schemes
altercation的 solarized配色方案solarized
2. 配置步驟:
-
clone上面的repo
-
進入iterm2,然后⌘commmand + i
-
進入colors標簽,Load Preset;然后點選import導入上面所說的配色方案即可
-
進入text標簽,不勾選Draw bold text in bright colors選項
-
-
配置.bash_profile
-
vim $HOME/.bash_profile,添加下列代碼
CLICOLOR=1 LSCOLORS=gxfxcxdxegedabagacad export PS1='[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$' export TERM=xterm-color
-
source $HOME/.bash_profile ,使得上述配置生效
-
-
重啟iterm2即可
出處: href='https://segmentfault.com/a/1190000004947174