From 84a85d428aea4f51fca634d9beaaf369c3d32630 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 12 May 2020 10:23:39 +0800 Subject: [PATCH] [feature] add useful k8s aliases --- config/fish/config.fish | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/fish/config.fish b/config/fish/config.fish index 0ca1d7e..f3f0de4 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -108,5 +108,12 @@ if test -z "$DISPLAY" -a -n "$XDG_VTNR" -a "$XDG_VTNR" -eq "1" -a -z "$STARTED" end alias k=kubectl +alias kcc="k config get-contexts" +alias kcu="k config use-context" +alias kgd="k get deployment" +alias ked="k edit deployment" +alias kgp="k get pod -o 'custom-columns=NAME:.metadata.name,IMG:.spec.containers[*].image,STATUS:.status.phase'" +alias kl="k logs -f --all-containers" + source-file-if-exists ~/.profile.fish