ITerm2安装美化

1.下载安装

http://iterm2.com/

2.设置ITerm为默认终端

点击左上角iTerm2,然后点击Make iTerm2 Default Term

3.安装oh-my-zsh

查看系统有几个shell
$ cat /etc/shells
设置默认 shell
$ chsh -s /bin/zsh
使用crul安装
sh -c “$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”

4.修改主题

打开隐藏文件
$ vim ~/.zshrc
修改主题为:af-magic
修改代码ZSH_THEME=“af-magic”
配置编码
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
设置自动提示命令和语法高亮
克隆仓库到本地 ~/.oh-my-zsh/custom/plugins 路径下
$ git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
$ git clone git://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
$ vim ~/.zshrc
修改为plugins=( git zsh-autosuggestions zsh-syntax-highlighting)
$ source ~/.zshrc

5.重开终端窗口

你可能感兴趣的:(MAC,iterm2)