Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
0655241f
Unverified
Commit
0655241f
authored
Apr 25, 2021
by
Eric Rodrigues Pires
Committed by
GitHub
Apr 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(kubectl): use `--current` flag in `kcn` alias (#7605)
parent
6a7285bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
plugins/kubectl/README.md
+1
-1
kubectl.plugin.zsh
plugins/kubectl/kubectl.plugin.zsh
+1
-1
No files found.
plugins/kubectl/README.md
View file @
0655241f
...
...
@@ -49,7 +49,7 @@ plugins=(... kubectl)
| kdeli |
`kubectl delete ingress`
| Delete ingress resources matching passed argument |
| | |
**Namespace management**
|
| 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 |
| kdns |
`kubectl describe namespace`
| Describe namespace resource in detail |
| 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'
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'
...
...
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