0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-17 04:16:52 +02:00
ohmyzsh/plugins/scw/scw.plugin.zsh

15 lines
257 B
Bash
Raw Normal View History

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