summaryrefslogtreecommitdiff
path: root/plugins/kubectl
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2019-04-29 15:48:24 +0200
committerGitHub <noreply@github.com>2019-04-29 15:48:24 +0200
commit6da85279eb544c48e85a3714e6fe65f72fd78071 (patch)
tree04b1875a1111c5c8a5bc3541111cb603fb4bd9ec /plugins/kubectl
parentd16adb6a9f9b0ea46121f48751a012f0511b465b (diff)
downloadzsh-6da85279eb544c48e85a3714e6fe65f72fd78071.tar.gz
zsh-6da85279eb544c48e85a3714e6fe65f72fd78071.tar.bz2
zsh-6da85279eb544c48e85a3714e6fe65f72fd78071.zip
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.
Diffstat (limited to 'plugins/kubectl')
-rw-r--r--plugins/kubectl/README.md2
-rw-r--r--plugins/kubectl/kubectl.plugin.zsh3
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/kubectl/README.md b/plugins/kubectl/README.md
index 9cd4a369e..3343f0195 100644
--- a/plugins/kubectl/README.md
+++ b/plugins/kubectl/README.md
@@ -13,7 +13,7 @@ plugins=(... kubectl)
| Alias | Command | Description |
|:--------|:------------------------------------|:-------------------------------------------------------------------------------------------------|
-| ku | `kubectl` | The kubectl command |
+| k | `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 9a4489fb6..ab7a1a0a4 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -10,7 +10,8 @@ if (( $+commands[kubectl] )); then
unset __KUBECTL_COMPLETION_FILE
fi
-alias ku=kubectl
+# This command is used a LOT both below and in daily life
+alias k=kubectl
# Execute a kubectl command against all namespaces
alias kca='f(){ kubectl "$@" --all-namespaces; unset -f f; }; f'