From d5b39cef0c346031cc80e6e544875a43018c343f Mon Sep 17 00:00:00 2001 From: Thiago Negri Date: Mon, 4 Nov 2024 10:30:41 -0300 Subject: [PATCH] which kubectl --- functions/_tide_item_kubectl.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/_tide_item_kubectl.fish b/functions/_tide_item_kubectl.fish index ab044b33..01e2948c 100644 --- a/functions/_tide_item_kubectl.fish +++ b/functions/_tide_item_kubectl.fish @@ -1,4 +1,4 @@ function _tide_item_kubectl - kubectl config view --minify --output 'jsonpath={.current-context}/{..namespace}' 2>/dev/null | read -l context && + which kubectl 2>/dev/null && kubectl config view --minify --output 'jsonpath={.current-context}/{..namespace}' 2>/dev/null | read -l context && _tide_print_item kubectl $tide_kubectl_icon' ' (string replace -r '/(|default)$' '' $context) end