zsh插件安装

xiaoxiao2021-02-28  27

安装autojump

autojump可以直接跳转到你喜爱的目录。下面是安装方法: 1. brew install autojump 2. 将[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh加入到zshrc中去。

安装zsh-autosuggestions

autosuggestions可以自动补全上一条命令。 1. git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions 2. 修改zshrc: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修改zshrc:plugins=( [plugins...] zsh-syntax-highlighting)
转载请注明原文地址: https://www.6miu.com/read-800122.html

最新回复(0)