Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 499 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 499 Bytes

ctx

This is a tool to rapidly tab-complete your way to a GKE context

installation

From within your cloud shell, or anywhere you have direct access to the GKE API

Run git clone git@github.com:ColinHeathman/ctx.git ~/.local/share/ctx

Add this to ~/.bashrc or ~/.bash_profile:

alias ctx="source ${HOME}/.local/share/ctx/ctxrc"
source <(ctx completion)

eg.

cat >> ~/.bash_profile <<EOF

alias ctx="source \${HOME}/.local/share/ctx/ctxrc"
source <(ctx completion)

EOF