Increase your productivity with Kubernetes CLI, using zsh, oh-my-zsh and the kubectl plugin. Here is a full list of aliases for common commands.

For example:

kkubectlThe kubectl command
kcakubectl --all-namespacesThe kubectl command targeting all namespaces
kgpkubectl get podsList all pods in ps output format

Install zsh


Install the following packages using homebrew:

brew install zsh zsh-completions

Change your default shell using the command:

chsh -s /usr/local/bin/zsh


Using apt:

apt install zsh


Using yum:

sudo yum update && sudo yum -y install zsh

Install oh-my-zsh

Using curl:

sh -c "$(curl -fsSL"

Using wget:

sh -c "$(wget -O -)"

Add the Kubernetes plugin

Add kubectl to the list of plugins in ~/.zshrc,


Then run source ~/.zshrc to reload the configuration.

💥 Instead of kubectl get pods you can simply run kgp.