mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-08-07 00:04:25 +08:00
fix(kubectl): use --current flag in kcn alias (#7605)
This commit is contained in:
@@ -71,7 +71,7 @@ alias kgns='kubectl get namespaces'
|
||||
alias kens='kubectl edit namespace'
|
||||
alias kdns='kubectl describe namespace'
|
||||
alias kdelns='kubectl delete namespace'
|
||||
alias kcn='kubectl config set-context $(kubectl config current-context) --namespace'
|
||||
alias kcn='kubectl config set-context --current --namespace'
|
||||
|
||||
# ConfigMap management
|
||||
alias kgcm='kubectl get configmaps'
|
||||
|
||||
Reference in New Issue
Block a user