From 03f0baea267a232b8cef212f243eebfd79bb7148 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 26 Mar 2025 16:38:00 -0500 Subject: [PATCH] fix: kub commands using wrong fuzzy finder --- lib/modules/home/scripts/common/bin/kubfc | 2 +- lib/modules/home/scripts/common/bin/kubfn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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='{}'