-
Notifications
You must be signed in to change notification settings - Fork 497
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
zsh & bash completions #171
Comments
The new version (implemented in Rust) is shipped with completions:
will produce shell completions |
I have a problem with the zsh completions. There is no instructions what to do with the output provided by fnm. Apparently for fish it works out of the box, but this does not seem to be the case with zsh. |
Hi @anan44! What's up 😄 I'm not entirely sure how to do with zsh completions, but I know that homebrew installs them (verified that) and I know that it works for me on my machine, and this is how I did it locally: fnm completions --shell=zsh > ~/.zfunc/_fnm because I have the following in my fpath+=~/.zfunc
compinit I guess it says:
Can you try that to install completions? |
Hi @Schniz! First of all huge hats off for faster that speed of light response! I tried your instructions and it works like a charm! Thanks mate! |
I'm using antigen and followed these steps:
Works for me. |
Installing latest So adding this to fpath+="/opt/homebrew/share/zsh/site-functions"
autoload -Uz compinit
compinit I wish this was in the README. |
I see there's already some work in progress for adding fish completions (#105).
Would you be interested to add bash and zsh ones?
A friend of mine is working on a way to generate completions (completely). At the moment it only supports a JSON declaration as the input. Eventually there will be a DSL to write them and/or some way to generate completions from the
--help
command.I can write the JSON declaration and then generate them and open a PR or the other option is to have the JSON declarations in the repo and run it in a build step.
Also, great project! Thanks for working on this! 🎉
The text was updated successfully, but these errors were encountered: