Zsh
For zsh make sure these lines are present in your zsh config file (e.g ~/.zshrc
or ~/.zprofile
):
Completions
Completion can be easily borrowed from the kubectl
command by adding this to your ~/.zshrc
file:
As a prerequisite, you need kubectl
completions installed.
This can be achieved by either of these steps:
-
If your
kubectl
installation already came shipped with zsh completions (when you didapt install kubectl
,dnf install kubectl
, etc). Try outkubectl
to see if the completions are already installed before you install it twice. -
or you add this to
~/.zshrc
: -
or you can executed this: