feat(dev): lazy-load scaleway CLI completions

This commit is contained in:
2021-08-30 22:27:29 +01:00
parent 08a42fc019
commit 9d7a23615c
2 changed files with 12 additions and 0 deletions

11
zsh/scaleway.zsh Normal file
View File

@@ -0,0 +1,11 @@
#
# Scaleway CLI setup.
#
if command-exists scw; then
_scw() {
unset -f _scw
eval "$(command scw autocomplete script shell=zsh)"
}
compctl -K _scw scw
fi