mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
@@ -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
|
function kj() { kubectl "$@" -o json | jq; }
|
||||||
if (( ${+_comps[kubectl]} )); then
|
function kjx() { kubectl "$@" -o json | fx; }
|
||||||
function kj() { kubectl "$@" -o json | jq; }
|
function ky() { kubectl "$@" -o yaml | yh; }
|
||||||
function kjx() { kubectl "$@" -o json | fx; }
|
if (( ${+functions[compdef]} )); then
|
||||||
function ky() { kubectl "$@" -o yaml | yh; }
|
compdef _kubectl kj
|
||||||
|
compdef _kubectl kjx
|
||||||
compdef kj=kubectl
|
compdef _kubectl ky
|
||||||
compdef kjx=kubectl
|
|
||||||
compdef ky=kubectl
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user