-
-
Notifications
You must be signed in to change notification settings - Fork 816
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
fd zsh completion shows error 'zsh: command not found: a' #487
Comments
Thank you for reporting this and for the analysis. I haven't looked at it in detail, but it looks like a bug in the autogeneration of |
I noticed this bug today, and I'm using oh-my-zsh. For me, adding plugins=(... fd) PS: the plugin's readme says that definitions are taken from version |
@farzamf yeah, that would load the fd completion from oh-my-zsh which, as you noted, is from an older version of fd and doesn’t have this bug. Good workaround in the time being, though. |
I just made a PR upstream which will fix this issue. 😄 |
Any updates on this? |
Sadly no action has been taken upstream yet. You could watch the following PR: clap-rs/clap_generate#5 |
Can you show how to fix it manually? I can't find the path of clap-rs on mac OS. Thanks. |
The fix is now merged upstream! 🎉 |
Thank you, @barskern. I'm not sure how this integrates with the main |
Released in fd 7.5.0 |
Thanks! I hope the latest version can be released on brew soon. |
Attempting to use fd's zsh completion outputs an annoying "command not found: a" upon requesting completion with the tab key. Screencast:
I narrowed it down to line 73 in the generated zsh completion script (installed at
/usr/share/zsh/site-functions/_fd
on Arch Linux):Escaping the third
:
solves the issue:The text was updated successfully, but these errors were encountered: