diff --git a/lib/modules/home/scripts/common/bin/kubfc b/lib/modules/home/scripts/common/bin/kubfc index b925485..96608c8 100755 --- a/lib/modules/home/scripts/common/bin/kubfc +++ b/lib/modules/home/scripts/common/bin/kubfc @@ -5,5 +5,5 @@ kubectl config get-contexts --no-headers | \ tr -s ' ' | \ sed -E 's/^\*?[[:space:]]*//g' | \ cut -d ' ' -f1 | \ - sk | \ + fzf | \ xargs -I{} kubectl config use-context '{}' diff --git a/lib/modules/home/scripts/common/bin/kubfn b/lib/modules/home/scripts/common/bin/kubfn index 5221a16..dd7eb94 100755 --- a/lib/modules/home/scripts/common/bin/kubfn +++ b/lib/modules/home/scripts/common/bin/kubfn @@ -8,5 +8,5 @@ kubectl get namespaces --show-labels | \ uniq | \ sort | \ cut -d ' ' -f1 | \ - sk | \ + fzf | \ xargs -I{} kubectl config set-context --current --namespace='{}'