chezmoi init
This commit is contained in:
commit
530d6d7195
1176 changed files with 111325 additions and 0 deletions
9
dot_oh-my-zsh/plugins/scw/README.md
Normal file
9
dot_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
dot_oh-my-zsh/plugins/scw/scw.plugin.zsh
Normal file
14
dot_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