Kubecolor is a
bash function that colorizes the output of
kubectl get events -w.
Bash / Fish / Manual
If you're using Bash or Fish:
git clone https://github.com/droctothorpe/kubecolor.git
echo "source ~/.kubecolor/kubecolor/kubecolor.bash" >> ~/.bash_profile # (or ~/.bashrc)
source ~/.bash_profile # (or ~/.bashrc)
If you're using Antigen:
antigen bundle droctothorpe/kubecolor.gitto your
.zshrcwhere you've listed your other plugins.
- Close and reopen your Terminal/iTerm window to refresh context and use the plugin. Alternatively, you can run
antigen bundle droctothorpe/kubecolor.gitin a running shell to have
antigenload the new plugin.
If you're using zgen:
zgen load droctothorpe/kubecolor.gitto your
.zshrcalong with your other
zgen reset && zgen save
Now you can invoke kubecolor with the
Enjoy the simpler, much more readable
kubectl get events output.
Kudos to Francois-Guillaume Ribreau for the go-template code.