mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-14 01:40:09 +00:00
parent
a4424dfefd
commit
2c08d2b842
1 changed files with 7 additions and 9 deletions
|
@ -180,13 +180,11 @@ alias kej='kubectl edit job'
|
||||||
alias kdj='kubectl describe job'
|
alias kdj='kubectl describe job'
|
||||||
alias kdelj='kubectl delete 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; }
|
function kj() { kubectl "$@" -o json | jq; }
|
||||||
function kjx() { kubectl "$@" -o json | fx; }
|
function kjx() { kubectl "$@" -o json | fx; }
|
||||||
function ky() { kubectl "$@" -o yaml | yh; }
|
function ky() { kubectl "$@" -o yaml | yh; }
|
||||||
|
if (( ${+functions[compdef]} )); then
|
||||||
compdef kj=kubectl
|
compdef _kubectl kj
|
||||||
compdef kjx=kubectl
|
compdef _kubectl kjx
|
||||||
compdef ky=kubectl
|
compdef _kubectl ky
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue