ahmetb / kubectx

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

Ignore errors of loading before completions initialized #377

Open AlmogBaku opened 1 year ago

AlmogBaku commented 1 year ago

This PR fixes the issue I encountered on #285

It simply ignores the error of loading this script before the compinit.

ahmetb commented 1 year ago

Is this pretty standard in comp scripts in zsh?

AlmogBaku commented 1 year ago

I dunno, I saw it on another project that had the same issue...

ahmetb commented 1 year ago

It would be good to research as it actually works fine for most people. Adding something we don't understand the consequences fully is going to create a problem in the future, especially if this bug happens because how things are set up for a small amount of people.