bash_completion additions
This commit is contained in:
parent
4dc445c411
commit
c8d12cc9ba
1
.alias
1
.alias
|
@ -16,7 +16,6 @@ alias mkdir="mkdir -p"
|
||||||
|
|
||||||
# k8s
|
# k8s
|
||||||
alias k="kubectl"
|
alias k="kubectl"
|
||||||
complete -F __start_kubectl k
|
|
||||||
|
|
||||||
which kubectx kubens &>/dev/null && \
|
which kubectx kubens &>/dev/null && \
|
||||||
alias kx="kubectx" && \
|
alias kx="kubectx" && \
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
# alias for kubectl to k
|
||||||
|
|
||||||
|
complete -o default -F __start_kubectl k
|
|
@ -17,7 +17,7 @@ _sv()
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
COMPREPLY=( /var/service/* )
|
COMPREPLY=( /var/service/* )
|
||||||
COMPREPLY+=( /home/hendrik/sv/* )
|
COMPREPLY+=( ${HOME}/sv/* )
|
||||||
COMPREPLY=( ${COMPREPLY[@]##*/} )
|
COMPREPLY=( ${COMPREPLY[@]##*/} )
|
||||||
COMPREPLY=( "${COMPREPLY[@]/README.md}" )
|
COMPREPLY=( "${COMPREPLY[@]/README.md}" )
|
||||||
COMPREPLY=( $(compgen -W '${COMPREPLY[@]}' -- ${cur}) )
|
COMPREPLY=( $(compgen -W '${COMPREPLY[@]}' -- ${cur}) )
|
||||||
|
|
Loading…
Reference in New Issue