kubectx
Faster way to switch between clusters and namespaces in kubectl
... installation. You can install and use Krew kubectl plugin manager to get kubectx and kubens. After installing, the tools will be available as kubectl ctx and kubectl ns. Since kubectx/kubens are written in Bash, you should be able to install them to any POSIX environment that has Bash installed. If you want kubectx and kubens commands to present you an interactive menu with fuzzy searching, you just need to install fzf in your PATH.