From 8a396e7c8acf82c3f0b6e3d1ead3f5fd477a3425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C4=B1rat=20K=C3=9C=C3=87=C3=9CK?= Date: Tue, 25 Jun 2024 07:39:20 +0200 Subject: [PATCH] feat(kubectl): kg alias --- plugins/kubectl/kubectl.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh index a96e409c6..8889d73de 100644 --- a/plugins/kubectl/kubectl.plugin.zsh +++ b/plugins/kubectl/kubectl.plugin.zsh @@ -15,6 +15,9 @@ kubectl completion zsh 2> /dev/null >| "$ZSH_CACHE_DIR/completions/_kubectl" &| # This command is used a LOT both below and in daily life alias k=kubectl +# General purpose get for the resources which don't have aliases like custom resources. +alias kg=kubectl get + # Execute a kubectl command against all namespaces alias kca='_kca(){ kubectl "$@" --all-namespaces; unset -f _kca; }; _kca'