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
9
.zsh/oh-my-zsh/plugins/scw/README.md
Normal file
9
.zsh/oh-my-zsh/plugins/scw/README.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
## Scaleway CLI plugin
|
||||
|
||||
This plugin adds completion for [scw](https://github.com/scaleway/scaleway-cli), the command line interface for Scaleway.
|
||||
|
||||
To use it, add `scw` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... scw)
|
||||
```
|
||||
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