Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save groundnuty/3021271f8daaae7c0a73fb0a5dc64891 to your computer and use it in GitHub Desktop.
Save groundnuty/3021271f8daaae7c0a73fb0a5dc64891 to your computer and use it in GitHub Desktop.
Install kubectx and kubens on Linux.
sudo git clone https://github.com/ahmetb/kubectx /opt/kubectx
sudo ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx
sudo ln -s /opt/kubectx/kubens /usr/local/bin/kubens
echo "source /opt/kubectx/completion/kubectx.bash" >> ~/.bashrc
echo "source /opt/kubectx/completion/kubens.bash" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment