Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
60736c9f
Commit
60736c9f
authored
May 21, 2019
by
Miral
Committed by
Robby Russell
May 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new kubectl alias to list all contexts (#7823)
* Add alias to list all contexts * Update readme to include new alias
parent
f62a71e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
README.md
plugins/kubectl/README.md
+1
-0
kubectl.plugin.zsh
plugins/kubectl/kubectl.plugin.zsh
+3
-0
No files found.
plugins/kubectl/README.md
View file @
60736c9f
...
...
@@ -22,6 +22,7 @@ plugins=(... kubectl)
| kcsc |
`kubectl config set-context`
| Set a context entry in kubeconfig |
| kcdc |
`kubectl config delete-context`
| Delete the specified context from the kubeconfig |
| kccc |
`kubectl config current-context`
| Display the current-context |
| kcgc |
`kubectl config get-contexts`
| List of contexts available
| | |
**General aliases**
|
| kdel |
`kubectl delete`
| Delete resources by filenames, stdin, resources and names, or by resources and label selector |
| kdelf |
`kubectl delete -f`
| Delete a pod using the type and name specified in -f argument |
...
...
plugins/kubectl/kubectl.plugin.zsh
View file @
60736c9f
...
...
@@ -28,6 +28,9 @@ alias kcsc='kubectl config set-context'
alias
kcdc
=
'kubectl config delete-context'
alias
kccc
=
'kubectl config current-context'
# List all contexts
alias
kcgc
=
'kubectl config get-contexts'
# General aliases
alias
kdel
=
'kubectl delete'
alias
kdelf
=
'kubectl delete -f'
...
...
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