Created
April 21, 2021 08:37
-
-
Save luminoso/1ad3e19a7bc5aea3749c3f6e6f63b836 to your computer and use it in GitHub Desktop.
kubectx zinit install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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