mac上安装iterm2

2021-10-16  本文已影响0人  代瑶

1. 先安装iterm2

brer install iterm2

2. 配置主题

在某个自己的文件夹下面执行
git clone git://github.com/altercation/solarized.git
拉取完成后打开iterm2

image.png image.png image.png 导入完成后选中Solarized Dark.png

3. 设置背景

http://wx1.sinaimg.cn/large/81f8a509gy1fnjdvkkwgoj20zk0m8ak8.jpg
下载保存

选中window, 然后Background Image Enable.png

4. 配置Oh My Zsh

运行

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

执行 open ~/.zshrc 修改ZSH_THEME为ZSH_THEME="agnoster"

5.安装字体

RobotoMono.ttf 安装

6.高亮 和 提示

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions

open ~/.zshrc
修改
plugins=(zsh-autosuggestions git zsh-syntax-highlighting)

如果iterm2打开后出现很多行提示
则打开 .zshrc 文件的第一行添加 ZSH_DISABLE_COMPFIX=true

上一篇 下一篇

猜你喜欢

热点阅读