1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

fix(docker): support completion on snap installs (#12224)

This commit is contained in:
Oren 2024-02-20 11:59:12 +02:00 committed by GitHub
parent 15ffbdd346
commit 40ff950fcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,6 +57,6 @@ fi
! is-at-least 23.0.0 ${${(s:,:z)"$(command docker --version)"}[3]}; then
command cp "${0:h}/completions/_docker" "$ZSH_CACHE_DIR/completions/_docker"
else
command docker completion zsh >| "$ZSH_CACHE_DIR/completions/_docker"
command docker completion zsh | tee "$ZSH_CACHE_DIR/completions/_docker" > /dev/null
fi
} &|