The following is a basic bash/zsh
setup to work with kubectl
+ nano
editor. It does the following:
- first it sets up autocompletion of both
kubectl
andk
. - it then proceeds to setup
nano
, first by changing the defaultkubectl
edit editor to it, then by enabling yaml syntax highlighting for the nano editor. - Lastly it sets up the
kn
alias to easily set the namespace wanted.
Bash version:
zsh version: