Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
0655241f
Unverified
Commit
0655241f
authored
Apr 25, 2021
by
Eric Rodrigues Pires
Committed by
GitHub
Apr 25, 2021
Browse files
fix(kubectl): use `--current` flag in `kcn` alias (#7605)
parent
6a7285bc
Changes
2
Show whitespace changes
Inline
Side-by-side
plugins/kubectl/README.md
View file @
0655241f
...
@@ -49,7 +49,7 @@ plugins=(... kubectl)
...
@@ -49,7 +49,7 @@ plugins=(... kubectl)
| kdeli |
`kubectl delete ingress`
| Delete ingress resources matching passed argument |
| kdeli |
`kubectl delete ingress`
| Delete ingress resources matching passed argument |
| | |
**Namespace management**
|
| | |
**Namespace management**
|
| kgns |
`kubectl get namespaces`
| List the current namespaces in a cluster |
| kgns |
`kubectl get namespaces`
| List the current namespaces in a cluster |
| kcn |
`kubectl config set-context
...`
| Change current namespace |
| kcn |
`kubectl config set-context
--current --namespace`
| Change current namespace |
| kens |
`kubectl edit namespace`
| Edit namespace resource from the default editor |
| kens |
`kubectl edit namespace`
| Edit namespace resource from the default editor |
| kdns |
`kubectl describe namespace`
| Describe namespace resource in detail |
| kdns |
`kubectl describe namespace`
| Describe namespace resource in detail |
| kdelns |
`kubectl delete namespace`
| Delete the namespace. WARNING! This deletes everything in the namespace |
| kdelns |
`kubectl delete namespace`
| Delete the namespace. WARNING! This deletes everything in the namespace |
...
...
plugins/kubectl/kubectl.plugin.zsh
View file @
0655241f
...
@@ -71,7 +71,7 @@ alias kgns='kubectl get namespaces'
...
@@ -71,7 +71,7 @@ alias kgns='kubectl get namespaces'
alias
kens
=
'kubectl edit namespace'
alias
kens
=
'kubectl edit namespace'
alias
kdns
=
'kubectl describe namespace'
alias
kdns
=
'kubectl describe namespace'
alias
kdelns
=
'kubectl delete 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
# ConfigMap management
alias
kgcm
=
'kubectl get configmaps'
alias
kgcm
=
'kubectl get configmaps'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment