A kubectx
/kubens
replacement that sets the kubectl
config file, context, and namespace for each individual instance of the fish shell.
- Change the
kubectl
config file, context, and namespace of only one fish instance. (No more outdated/incorrect prompts!) - Barebones installation, easy configuration.
With fisher:
fisher install eth-p/fish-kubeswitch
# Make sure that "kubectl" runs within the kubeswitch environment.
echo "kubeswitch kubectl-alias kubectl" >> ~/.config/fish/config.fish
# New shell instances will use the last-set kubeswitch environment.
echo "kubeswitch inherit-env" >> ~/.config/fish/config.fish