978b724c4aeef4113773e27e60fd20af12ca57b8
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
kubectl: rename k alias (#7749)
This uses `ku` instead of `k` as an alias for kubectl.
Fixes #6408
Diff
1diff --git a/plugins/kubectl/README.md b/plugins/kubectl/README.md
2index 3343f019559a78acac02535f66a2597df6edff9e..9cd4a369e8f41103a7578dd6a1a545cbf8ac389c 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-| k | `kubectl` | The kubectl command |
10+| ku | `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 ab7a1a0a44b79726c191bdb0c1e1fd3d0c25161e..9a4489fb6c7e51eec757f9e5b81f3effafb39fea 100644
16--- a/plugins/kubectl/kubectl.plugin.zsh
17+++ b/plugins/kubectl/kubectl.plugin.zsh
18@@ -10,8 +10,7 @@ if (( $+commands[kubectl] )); then
19 unset __KUBECTL_COMPLETION_FILE
20 fi
21
22-# This command is used a LOT both below and in daily life
23-alias k=kubectl
24+alias ku=kubectl
25
26 # Execute a kubectl command against all namespaces
27 alias kca='f(){ kubectl "$@" --all-namespaces; unset -f f; }; f'