Skip to content

Commit

Permalink
shuffling around k8s items
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Nov 16, 2023
1 parent 5e4b438 commit c8a5f1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/bash/files/bash/k8s_aliases.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env bash

alias kctx='kubectl config use-context $(kubectl config get-contexts -o name | fzf)'
alias k=kubectl
source <(kubectl completion bash)
complete -F __start_kubectl k
3 changes: 3 additions & 0 deletions roles/bash/files/bash/k8s_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ function kexec() {
function kc() {
kubectl config use-context $1
}

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

0 comments on commit c8a5f1e

Please sign in to comment.