Skip to content

iterm2配合oh-my-zsh配置个性主题终端

安装iterm2

官网下载:https://iterm2.com/

安装oh my zsh

官网:https://ohmyz.sh/

安装脚本:sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

因为网络原因无法执行这个脚本的可以找gitee上的国内源

更改iterm2的主题颜色为dracula

在iterm2的dracula主题仓库中下载color文件

仓库地址: https://github.com/dracula/iterm.git

image-20211119150619779

打开iterm2导入刚下载的color文件

image-20211119150804269

如图,导入完之后就可以选择导入的dracula主题颜色

安装命令高亮插件

clone代码到本地

git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.zsh/zsh-syntax-highlighting

修改.zshrc配置

添加配置:source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

效果

image-20211119151720033

安装历史指令提示插件

clone代码到本地

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions

修改.zshrc配置

source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh