[feature] fish completion for docker

This commit is contained in:
Klesh Wong 2020-09-27 18:04:33 +08:00
parent d85fd2488c
commit 700ab0f41a

View File

@ -25,6 +25,14 @@ sudo systemctl start docker
# configuration
sudo usermod -aG docker $USER
# completion
case "$DEFAULT_SHELL" in
fish)
curl -sLo $HOME/.config/fish/completions/docker.fish --create-dirs \
'https://github.com/docker/cli/raw/master/contrib/completion/fish/docker.fish'
;;
esac
# set mirror
if in-china && [[ -d /etc/docker ]]; then
if [ -f /etc/docker/daemon.json ]; then