1、下载iTerm2
iTerm2
下载地址:https://www.iterm2.com/downloads.html
2、配置iTerm2主题
iTerm2
最常用的主题是Solarized Dark theme
。
- 1.按
Command + ,
快捷键打开iTerm2
,打开iTerm2
的偏好设置 - 2.定位到
Profiles -> Colors -> Color Presets
路径,选择Solarized Dark
主题。
3、配置Oh My Zsh设置
ohmyzsh地址: https://github.com/ohmyzsh/ohmyzsh
- 1.安装方法
Method | Command |
---|---|
curl | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
wget | sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
fetch | sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
- 2.设置默认
Shell
使用Oh My Zsh
配置, - 命令:
$ chsh -s /bin/zsh
- 3.定位到
~/.oh-my-zsh/themes
文件夹下,拷贝一份agnoster.zsh-theme
并命名为自己想用的名称以.zsh-theme
后缀结尾,例如:test_custom.zsh-theme
。 - 4.打开我们的
iTerm2
,使用vim ~/.zshrc
命令编辑zsh
的配置文件 - 5.主题配置修改为
ZSH_THEME="test_custom"
。
参考文献