Mac-ZSH-Docker补全

ZSH终端Docker没有自动补全问题

下载补全插件

1
2
mkdir -p ~/.zsh/completion
curl -L https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/zsh/_docker > ~/.zsh/completion/_docker

设置ZSH

1
2
echo "fpath=(~/.zsh/completion $fpath)" >> ~/.zshrc
echo "autoload -Uz compinit && compinit -i" >> ~/.zshrc

重载配置

1
source ~/.zshrc

相关文章

Docker

Docker安装软件

Docker高级

Windows10隐藏我的电脑相关文件夹

Sublime安装实时预览md文档插件

win11设置win10右键

Docker安装Alist+Aria2+Qbittorrentee

Docker设置代理

国内可用Docker镜像仓库

Docker提示没权限