1
zsh 插件推荐
source link: https://forrestsu.github.io/posts/tools/zsh-plugins/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1 准备工作
先安装 oh-my-zsh
配置管理工具
2 zsh常用插件
- 命名补全:zsh-completions
brew install zsh-completions
- 如果自动补全不生效,将以下2个目录,追加到
FPATH
路径中即可。
在.zshrc
文件中,添加如下内容:
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$(brew --prefix)/share/zsh/site-functions:$FPATH
autoload -Uz compinit
compinit
fi
其他第三方工具,自动补全脚本(比如goup
)保存在如下路径即可。
goup completion zsh > $(brew –prefix)/share/zsh/site-functions/_goup
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK