added oh-my-ssh back as raw code, not as a submodule.
This commit is contained in:
parent
23fe3ee6d5
commit
f663947bfc
1195 changed files with 126994 additions and 0 deletions
14
.zsh/oh-my-zsh/plugins/scw/scw.plugin.zsh
Normal file
14
.zsh/oh-my-zsh/plugins/scw/scw.plugin.zsh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue