Kubernetes aliases module for prezto. Also loads/caches the zsh
completions for kubectl
.
Aliases that @idcrook uses for kubernetes, originally in BASH
To use, the module directory needs to be found in pmodule-dirs
, so e.g. in zpreztorc
:
# Add additional directories to load prezto modules from
-# zstyle ':prezto:load' pmodule-dirs $HOME/.zprezto-contrib
+zstyle ':prezto:load' pmodule-dirs $HOME/.zprezto-contrib
It could also be placed in /contrib
or /modules
which are already in default pmodule-dirs
.
cd $HOME/.zprezto-contrib
git clone https://github.com/idcrook/prezto-kubernetes.git kubernetes
# or alternatively
git submodule add https://github.com/idcrook/prezto-kubernetes.git kubernetes
The module itself (above cloned to be named kubernetes
) needs to be explicitly loaded in ${ZDOTDIR:-$HOME}/.zpreztorc
Modules are loaded via zstyle ':prezto:load' pmodule
...
'utility' \
'completion' \
'kubernetes' \
...
In mine, I've loaded it after completion
module.
kbk
kubectl
basekbn
withkube-system
namespace
kbkd
describekbkg
getkbkl
logskbklf
logs --follow
Inspired by and based on prezto-contrib/kubernetes at master · belak/prezto-contrib