fix(bash): alias completion
This commit is contained in:
parent
d4d3c1af55
commit
2d8685c8e4
19 changed files with 332 additions and 310 deletions
|
|
@ -1,6 +1,7 @@
|
|||
function _kns() {
|
||||
[ "$COMP_CWORD" -ne 1 ] && return
|
||||
mapfile -t COMPREPLY < <(compgen -W \
|
||||
"$(kubectl get namespace -o jsonpath='{..metadata.name}')" \
|
||||
-- "${COMP_WORDS[1]}")
|
||||
}
|
||||
complete -F _kns kns
|
||||
complete -o nospace -F _kns kns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue