ahmetb / kubectx

Faster way to switch between clusters and namespaces in kubectl
https://kubectx.dev
Apache License 2.0
17.66k stars 1.26k forks source link

Shell completions (for zsh) fail for kubectx if its binary is renamed to kx #408

Open smktpd opened 10 months ago

smktpd commented 10 months ago

If I mv kubectx kctx (or ln -s kubectx kctx) - then shell completions work fine for kctx {TAB}. But if I mv kubectx kx (or ln -s kubectx kx) - then shell completions fail for kx {TAB}.

The name by which I address the very same binary shouldn't affect this functionality. kubectx v0.9.5

smktpd commented 5 months ago

I added kx=kubectx to this line and removed ~/.zcompdump (for it to get regenerated) and that way kx completion started to work.