Revert "kubectl: rename k alias" (#7817)
This reverts commit 978b724c4aeef4113773e27e60fd20af12ca57b8 (#7749)
See https://github.com/robbyrussell/oh-my-zsh/issues/6408#issuecomment-485718042 and later comments.
Diff
1diff --git a/plugins/kubectl/README.md b/plugins/kubectl/README.md
2index 9cd4a369e8f41103a7578dd6a1a545cbf8ac389c..3343f019559a78acac02535f66a2597df6edff9e 100644
3--- a/plugins/kubectl/README.md
4+++ b/plugins/kubectl/README.md
5@@ -13,7 +13,7 @@ plugins=(... kubectl)
6 7 | Alias | Command | Description |
8 |:--------|:------------------------------------|:-------------------------------------------------------------------------------------------------|
9-| ku | `kubectl` | The kubectl command |
10+| k | `kubectl` | The kubectl command |
11 | kca | `kubectl --all-namespaces` | The kubectl command targeting all namespaces |
12 | kaf | `kubectl apply -f` | Apply a YML file |
13 | keti | `kubectl exec -ti` | Drop into an interactive terminal on a container |
14diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
15index 9a4489fb6c7e51eec757f9e5b81f3effafb39fea..ab7a1a0a44b79726c191bdb0c1e1fd3d0c25161e 100644
16--- a/plugins/kubectl/kubectl.plugin.zsh
17+++ b/plugins/kubectl/kubectl.plugin.zsh
18@@ -10,7 +10,8 @@ if (( $+commands[kubectl] )); then
19 unset __KUBECTL_COMPLETION_FILE
20 fi
2122-alias ku=kubectl
23+# This command is used a LOT both below and in daily life
24+alias k=kubectl
2526 # Execute a kubectl command against all namespaces
27 alias kca='f(){ kubectl "$@" --all-namespaces; unset -f f; }; f'