mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 14:20:08 +00:00
Merge pull request #1 from maljolani/maljolani-patch-1
feat(kubectl): add alias for unset current-context
This commit is contained in:
commit
4056aaa986
2 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ plugins=(... kubectl)
|
||||||
| | | **Manage configuration quickly to switch contexts between local, dev and staging** |
|
| | | **Manage configuration quickly to switch contexts between local, dev and staging** |
|
||||||
| kcuc | `kubectl config use-context` | Set the current-context in a kubeconfig file |
|
| kcuc | `kubectl config use-context` | Set the current-context in a kubeconfig file |
|
||||||
| kcsc | `kubectl config set-context` | Set a context entry in kubeconfig |
|
| kcsc | `kubectl config set-context` | Set a context entry in kubeconfig |
|
||||||
|
| kucc | `kubectl config unset current-context` | Unset the current-context in a kubeconfig file |
|
||||||
| kcdc | `kubectl config delete-context` | Delete the specified context from the kubeconfig |
|
| kcdc | `kubectl config delete-context` | Delete the specified context from the kubeconfig |
|
||||||
| kccc | `kubectl config current-context` | Display the current-context |
|
| kccc | `kubectl config current-context` | Display the current-context |
|
||||||
| kcgc | `kubectl config get-contexts` | List of contexts available |
|
| kcgc | `kubectl config get-contexts` | List of contexts available |
|
||||||
|
|
|
@ -29,6 +29,7 @@ alias kcuc='kubectl config use-context'
|
||||||
alias kcsc='kubectl config set-context'
|
alias kcsc='kubectl config set-context'
|
||||||
alias kcdc='kubectl config delete-context'
|
alias kcdc='kubectl config delete-context'
|
||||||
alias kccc='kubectl config current-context'
|
alias kccc='kubectl config current-context'
|
||||||
|
alias kucc='kubectl config unset current-context'
|
||||||
|
|
||||||
# List all contexts
|
# List all contexts
|
||||||
alias kcgc='kubectl config get-contexts'
|
alias kcgc='kubectl config get-contexts'
|
||||||
|
|
Loading…
Reference in a new issue