MAC 安装 Oh My Zsh 与 zsh-autosuggestions

3,706 阅读1分钟

终端工具Tabby个人感觉还是很好用的

  • 高度可配置
  • SFTP

tabby.sh/

image.png

安装链接

两种方式 终端输入即可

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

插件安装

安装完成后根目录下会有.oh-my-zsh image.png

zsh-autosuggestions 记忆联想插件

进入.oh-my-zsh/custom/plugins执行(之后有喜欢的插件同样方式安装配置)

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

zsh-syntax-highlighting 高亮命令插件

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

配置

oh-my-zsh模版更换

.oh-my-zsh/themes下有许多模版根据喜欢更换

根目录下vim .zshrc文件中进行配置

image.png

将安装的插件添加到plugins中

image.png

最后使配置生效

 source ~/.zshrc