配置 iterm2

以下是我对iterm的配置,其实也说不上是什么配置。就是换了一个舒服一点的主题,然后安装了几个常用的插件。有一些可用可不用的插件,暂时就先不安装了,如果有真正使用必要的时候再安装。

安装 ZSH

1
brew install zsh

安装 oh-my-zsh

1
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

安装 oh-my-zsh 插件

zsh-autosuggestions 自动补全插件

1
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

编辑.zshrc文件

1
plugins=(git zsh-autosuggestions)

zsh-syntax-highlighting 高亮

1
brew install zsh-syntax-highlighting

zsh-autosuggestions iterm2 输入建议

1
brew install zsh-autosuggestions

我在用的插件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
plugins=(
git
node
npm
sublime
ruby
sudo
python
osx
pyenv
gem
python
xcode
github
pip
zsh-autosuggestions
zsh-syntax-highlighting
)

The Why·Liam·Blog by WhyLiam is licensed under a Creative Commons BY-NC-ND 4.0 International License.

WhyLiam创作并维护的Why·Liam·Blog采用创作共用保留署名-非商业-禁止演绎4.0国际许可证

本文首发于Why·Liam·Blog (https://blog.naaln.com),版权所有,侵权必究。

本文永久链接:https://blog.naaln.com/2018/12/iterm2-zsh-config/