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-highlighting
和 zsh-autosuggestions
。plugins=(zsh-syntax-highlighting zsh-autosuggestions)
当修改 config 后执行以下操作生效 config
source ~/.zshrc
- 作者:NotionNext
- 链接:https://tangly1024.com/article/ohmyzsh
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。