Created
September 25, 2020 12:44
-
-
Save axdotl/ca27d8f2a283ca404f017c6a2b0a372a to your computer and use it in GitHub Desktop.
OhMyZsh plugin which adds useful aliases for kubectl-neat plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Requires https://github.com/itaysk/kubectl-neat | |
if [[ -z $commands[kubectl neat] ]]; then | |
echo 'kubectl is not installed.' | |
echo 'See https://github.com/itaysk/kubectl-neat' | |
return 1 | |
fi | |
# Pod | |
alias kgpn='kubectl neat get -- pod' | |
# Service | |
alias kgsn='kubectl neat get -- svc' | |
# Deployment | |
alias kgdn='kubectl neat get -- deploy' | |
# Ingress | |
alias kgin='kubectl neat get -- ing' | |
# Statefulset | |
alias kgssn='kubectl neat get -- statefulset' | |
# PVC | |
alias kgpvcn='kubectl neat get -- pvc' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment