Skip to content

Instantly share code, notes, and snippets.

@luminoso
Created April 21, 2021 08:37
kubectx zinit install
git clone https://github.com/ahmetb/kubectx.git
cd kubectx
#COMPDIR=$(pkg-config --variable=completionsdir bash-completion)
COMPDIR=$HOME/.zinit/completions
ln -s $(pwd)/completion/kubectx.zsh $COMPDIR/_kubectx.zsh
ln -s $(pwd)/completion/kubens.zsh $COMPDIR/_kubens.zsh
cd cmd/kubect
go build
cp kubectx ~/.local/bin
cd ../
go build
cp kubens ~/.local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment