mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-01-13 09:08:39 +01:00
kubectl: rename k alias (#7749)
This uses `ku` instead of `k` as an alias for kubectl. Fixes #6408
This commit is contained in:
parent
2c1880cf50
commit
978b724c4a
@ -13,7 +13,7 @@ plugins=(... kubectl)
|
|||||||
|
|
||||||
| Alias | Command | Description |
|
| Alias | Command | Description |
|
||||||
|:--------|:------------------------------------|:-------------------------------------------------------------------------------------------------|
|
|:--------|:------------------------------------|:-------------------------------------------------------------------------------------------------|
|
||||||
| k | `kubectl` | The kubectl command |
|
| ku | `kubectl` | The kubectl command |
|
||||||
| kca | `kubectl --all-namespaces` | The kubectl command targeting all namespaces |
|
| kca | `kubectl --all-namespaces` | The kubectl command targeting all namespaces |
|
||||||
| kaf | `kubectl apply -f` | Apply a YML file |
|
| kaf | `kubectl apply -f` | Apply a YML file |
|
||||||
| keti | `kubectl exec -ti` | Drop into an interactive terminal on a container |
|
| keti | `kubectl exec -ti` | Drop into an interactive terminal on a container |
|
||||||
|
@ -10,8 +10,7 @@ if (( $+commands[kubectl] )); then
|
|||||||
unset __KUBECTL_COMPLETION_FILE
|
unset __KUBECTL_COMPLETION_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This command is used a LOT both below and in daily life
|
alias ku=kubectl
|
||||||
alias k=kubectl
|
|
||||||
|
|
||||||
# Execute a kubectl command against all namespaces
|
# Execute a kubectl command against all namespaces
|
||||||
alias kca='f(){ kubectl "$@" --all-namespaces; unset -f f; }; f'
|
alias kca='f(){ kubectl "$@" --all-namespaces; unset -f f; }; f'
|
||||||
|
Loading…
Reference in New Issue
Block a user