Skip to content

A kubectx/kubens replacement for fish.

Notifications You must be signed in to change notification settings

eth-p/fish-kubeswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fish-kubeswitch

A kubectx/kubens replacement that sets the kubectl config file, context, and namespace for each individual instance of the fish shell.

Features

  • Change the kubectl config file, context, and namespace only one fish instance. (No more outdated/incorrect prompts!)
  • Barebones installation, easy configuration.

Install

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

Documentation

View the latest documentation in the docs folder.