feat: bash-completion, remove zsh
This commit is contained in:
parent
f2464c73f7
commit
d4d3c1af55
24 changed files with 41 additions and 1460 deletions
1
.local/share/bash-completion/completions/doas
Normal file
1
.local/share/bash-completion/completions/doas
Normal file
|
@ -0,0 +1 @@
|
|||
complete -F _command doas
|
6
.local/share/bash-completion/completions/gi
Normal file
6
.local/share/bash-completion/completions/gi
Normal file
|
@ -0,0 +1,6 @@
|
|||
function _gi() {
|
||||
mapfile -t COMPREPLY < <(compgen -W \
|
||||
"$(curl -sfL https://www.toptal.com/developers/gitignore/api/list | tr ',' '\n')" \
|
||||
-- "${COMP_WORDS[1]}")
|
||||
}
|
||||
complete -F _gi gi
|
2
.local/share/bash-completion/completions/k
Normal file
2
.local/share/bash-completion/completions/k
Normal file
|
@ -0,0 +1,2 @@
|
|||
. /usr/share/bash-completion/completions/kubectl
|
||||
complete -F __start_kubectl k
|
6
.local/share/bash-completion/completions/kctx
Normal file
6
.local/share/bash-completion/completions/kctx
Normal file
|
@ -0,0 +1,6 @@
|
|||
function _kctx() {
|
||||
mapfile -t COMPREPLY < <(compgen -W \
|
||||
"$(kubectl config get-contexts -o name)" \
|
||||
-- "${COMP_WORDS[1]}")
|
||||
}
|
||||
complete -F _kctx kctx
|
6
.local/share/bash-completion/completions/kns
Normal file
6
.local/share/bash-completion/completions/kns
Normal file
|
@ -0,0 +1,6 @@
|
|||
function _kns() {
|
||||
mapfile -t COMPREPLY < <(compgen -W \
|
||||
"$(kubectl get namespace -o jsonpath='{..metadata.name}')" \
|
||||
-- "${COMP_WORDS[1]}")
|
||||
}
|
||||
complete -F _kns kns
|
Loading…
Add table
Add a link
Reference in a new issue