Skip to content

Instantly share code, notes, and snippets.

@luminoso
Created April 21, 2021 08:37
Show Gist options
  • Save luminoso/1ad3e19a7bc5aea3749c3f6e6f63b836 to your computer and use it in GitHub Desktop.
Save luminoso/1ad3e19a7bc5aea3749c3f6e6f63b836 to your computer and use it in GitHub Desktop.
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