mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-27 19:03:04 +01:00
feat(kubectl): add aliases for job management (#9992)
This commit is contained in:
1 parent
f96a900ea3
commit
3343891ea6
2 files changed
+11
No files matched your search
@@ -178,6 +178,12 @@ alias kecj='kubectl edit cronjob'
|
||||
alias kdcj='kubectl describe cronjob'
|
||||
alias kdelcj='kubectl delete cronjob'
|
||||
|
||||
# Job management.
|
||||
alias kgj='kubectl get job'
|
||||
alias kej='kubectl edit job'
|
||||
alias kdj='kubectl describe job'
|
||||
alias kdelj='kubectl delete job'
|
||||
|
||||
# Only run if the user actually has kubectl installed
|
||||
if (( ${+_comps[kubectl]} )); then
|
||||
function kj() { kubectl "$@" -o json | jq; }
|
||||
|
||||
Reference in new issue
Block a user