mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
feat(kubectl): kg alias
This commit is contained in:
parent
a87e9c715b
commit
8a396e7c8a
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,9 @@ kubectl completion zsh 2> /dev/null >| "$ZSH_CACHE_DIR/completions/_kubectl" &|
|
|||
# This command is used a LOT both below and in daily life
|
||||
alias k=kubectl
|
||||
|
||||
# General purpose get for the resources which don't have aliases like custom resources.
|
||||
alias kg=kubectl get
|
||||
|
||||
# Execute a kubectl command against all namespaces
|
||||
alias kca='_kca(){ kubectl "$@" --all-namespaces; unset -f _kca; }; _kca'
|
||||
|
||||
|
|
Loading…
Reference in a new issue