type
Post
status
Published
date
Aug 4, 2022
slug
ohmyzsh
summary
在 MacBook 上配置 Oh My ZSH 以达到优化 terminal 的效果
tags
开发
工具
category
技术分享
icon
password

download

sh -c "$(curl -fsh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"sSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" chsh -s /bin/zsh
重启 zsh

Plugins

语法高亮 zsh-syntax-highlighting

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

自动补全 zsh-autosuggestions

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

Plugins Config

vim ~/.zshrc
找到 plugins=() 在 () 填入要生效的插件名称,生效多个插件中间使用空格隔开
ep. 生效 zsh-syntax-highlightingzsh-autosuggestions
plugins=(zsh-syntax-highlighting zsh-autosuggestions)
当修改 config 后执行以下操作生效 config
source ~/.zshrc
草履虫都能看懂的并查集电子饭圈的本质是什么