summaryrefslogtreecommitdiff
path: root/plugins/kubectl
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2019-04-17 17:23:54 +0200
committerGitHub <noreply@github.com>2019-04-17 17:23:54 +0200
commit978b724c4aeef4113773e27e60fd20af12ca57b8 (patch)
tree53571416443c1895d51d87a98cc34e5aedc8860e /plugins/kubectl
parent2c1880cf5070640b04f46303d35b68a107be3e2a (diff)
downloadzsh-978b724c4aeef4113773e27e60fd20af12ca57b8.tar.gz
zsh-978b724c4aeef4113773e27e60fd20af12ca57b8.tar.bz2
zsh-978b724c4aeef4113773e27e60fd20af12ca57b8.zip
kubectl: rename k alias (#7749)
This uses `ku` instead of `k` as an alias for kubectl. Fixes #6408
Diffstat (limited to 'plugins/kubectl')
-rw-r--r--plugins/kubectl/README.md2
-rw-r--r--plugins/kubectl/kubectl.plugin.zsh3
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/kubectl/README.md b/plugins/kubectl/README.md
index 3343f0195..9cd4a369e 100644
--- a/plugins/kubectl/README.md
+++ b/plugins/kubectl/README.md
@@ -13,7 +13,7 @@ plugins=(... kubectl)
| Alias | Command | Description |
|:--------|:------------------------------------|:-------------------------------------------------------------------------------------------------|
-| k | `kubectl` | The kubectl command |
+| ku | `kubectl` | The kubectl command |
| kca | `kubectl --all-namespaces` | The kubectl command targeting all namespaces |
| kaf | `kubectl apply -f` | Apply a YML file |
| keti | `kubectl exec -ti` | Drop into an interactive terminal on a container |
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index ab7a1a0a4..9a4489fb6 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -10,8 +10,7 @@ if (( $+commands[kubectl] )); then
unset __KUBECTL_COMPLETION_FILE
fi
-# This command is used a LOT both below and in daily life
-alias k=kubectl
+alias ku=kubectl
# Execute a kubectl command against all namespaces
alias kca='f(){ kubectl "$@" --all-namespaces; unset -f f; }; f'