feat(scw): use official scw completion (#12755)

This commit is contained in:
nervo authored and GitHub committed 2024-10-16 20:57:04 +02:00
1 parent 09a9467200
commit 9ae155336f
3 files changed
+20 -337

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
if (( ! $+commands[scw] )); then
return
fi
_scw () {
output=($(scw autocomplete complete zsh -- ${CURRENT} ${words}))
opts=('-S' ' ')
if [[ $output == *= ]]; then
opts=('-S' '')
fi
compadd "${opts[@]}" -- "${output[@]}"
}
compdef _scw scw