Skip to content

Commit

Permalink
Merge pull request #67 from TechDufus/k8s_context
Browse files Browse the repository at this point in the history
Update k8s_functions.sh
  • Loading branch information
TechDufus authored Nov 27, 2023
2 parents 99836a5 + 1315928 commit 989041e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion roles/bash/files/bash/k8s_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ function kexec() {
function kc() {
kubectl config use-context $1
}
function __refresh_kubecontexts() {
complete -W "$(kubectl config get-contexts -o=name)" kc
}

complete -W "$(kubectl config get-contexts -o=name)" kc
__refresh_kubecontexts
complete -W "$(kgnonly)" k.node.exec

0 comments on commit 989041e

Please sign in to comment.