Files
config/.oh-my-zsh/plugins/scw/scw.plugin.zsh
2025-07-22 16:18:19 +01:00

15 lines
257 B
Bash
Executable File

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