A Tiny Shell Alias That Saves Me Time Daily

TL;DR

  • Repeated commands deserve shortcuts.
  • A kbad shell alias turns a long pod-status query into a fast Kubernetes health scan.
  • Small workflow improvements compound when you use them every day.

I run this command many times a day:

kubectl get pods -A | grep -E "CrashLoopBackOff|Error|Pending"

So I turned it into an alias:

alias kbad='kubectl get pods -A | grep -E "CrashLoopBackOff|Error|Pending"'

Now kbad gives me a quick health scan during debugging.

It is not fancy, but that is the point.
Small ergonomics add up over months.

If you have commands you type 10+ times a week, alias them.
You’ll feel the difference in a few days.