-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get completion to work in ~/.zshrc #1529
Comments
Hi @JCzz.
However adding |
Thanks @marckhouzam I did add Do you know if it should work with the following plugins:
Should
In Also looked at #1534 but still the same problem |
This issue is being marked as stale due to a long period of inactivity |
Note that both kubectl and helm recommend that approach. You can see here how |
This was originally my opinion also, but then I realized I was basing it on my own usage habit. I believe But as you mention below, this can be overridden by the program.
This was for backwards-compatibility, where I didn't want to break the existing method used by |
Thank you for the quick and thoughtful response! Perhaps we could add an option to make this work in Cobra? One of the benefits of golang is that you can create a single CLI binary that doesn't necessarily warrant installation via a package manager. My company develops a CLI that is installed via direct download and while we could work around this the same way |
/cc @jharshman |
After upgrading to the latest cobra version, I'm running into the same issue where completions were broken in my tool. I tried to rework it to use the Using the workaround in Noticed the mention of |
Not sure why this would have broken in the lastest version. |
I don't think this has anything to do with the version.
Yes, that's what I'm suggesting. With due respect to the ZSH developers, I think users should be permitted to make their own decisions with regards to how their zsh environment is configured. I personally value the superior ergonomics of the The "package manager will take care of this for you" argument is somewhat compelling, but one of the reasons people use |
Thanks great tool!
Beneath is a simple command, but I am unable to get completion to work in ~/.zshrc.
Should the following steps not work:
"Error":
<TAB> <TAB>
only shows the files in the folder?Note: I have added this
autoload -U compinit; compinit
to~/.zshrc
and opened a new terminal, before running the above steps.And eventually when it works, I should add
fpath+=<only path to the folder containing _auto>
from executing./auto > "${fpath[<index of the added url>]}/_auto
to~/.zshrc
right?Any help appreciated, thanks
The text was updated successfully, but these errors were encountered: