习惯了Mac搬砖,对终端命令行的使用再熟悉不过,但从见到iTerm后,就更爱不释手。
为了改善枯燥的纯黑背景及不够立体的路径展示,看到网上很多iTerm主题设置的分享,记录一下自己的实操。
修改默认本机主题
修改默认本机主题
主题的安装
主题:oh my zsh
在线地址
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
or
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
若无法下载,可手工拉去对应仓库,直接安装配置
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
source ~/.zshrc
安装完成后操作
- vi ./zshrc
- 修改 ZSH_THEME="robbyrussell" 为 ZSH_THEME="agnoster"
- 重新打开iTerm
此时在线上路径时可能会出现乱码,出现问好(?)的情况,需要安装对应的字体 Powerline
字体的安装
git clone https://github.com/powerline/fonts.git
or
git clone git://github.com/powerline/fonts.git
- cd fonts
- 执行安装命令:./install.sh
-
修改iTerm主题字体
字体设置
重新打开Iterm,完成
成果