网站制作学习网Linux→正文:MAC Zsh 代码高亮提示
字体:

MAC Zsh 代码高亮提示

Linux 2021/6/19 10:23:49  点击:不统计


 MAC Zsh 代码高亮提示

对于OS X用户
直接
 
brew install zsh-syntax-highlighting
1
会自动下载这个插件,并将
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
这一句加在你的~/.zshrc中。
 
对于Oh-my-zsh用户
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
 
然后激活这个插件,通过在
~/.zshrc
中加入插件的名字
plugins=( [plugins...] zsh-syntax-highlighting)
最后当然是source一下,让改变生效
 
source ~/.zshrc
 
Note:插件可以装很多,但是装多了之后会在每次进入命令提示符的时候明显变慢。慎用
转自 https://blog.csdn.net/caiqiiqi/article/details/52139288

·上一篇:: Failed to connect to github.com port 443: Operation timed out >>    ·下一篇:Mac WindowServer进程占用CPU >>
推荐文章
最新文章