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
Fish completions, function with same name #3158
Comments
The latter is a broken function definition - there's no "-c" option to "function", so the definition is invalid. That it doesn't print an error is #2827 (though it appears it also applies to short options, despite what the title says). The rest is #3152, so I'll close this as a duplicate of that, and it seems that the blame lies with the |
I'm sorry but I don't think there's something wrong with my function, if you create a function like this:
You wil get the same result from #3152 |
In fact if I create a function with a different name let's say npm2, everything works fine:
|
@faho I submited a pull request that fixes the issue with completions |
npm is often wrapped by a function. Fixes fish-shell#3158.
Really fixes fish-shell#3158 and fish-shell#3152.
I'm having a hard time with completions and a function I have created.
So this function basically calls
__nvm_run
checks if nvm has already sourced node, if not sources it and then runs npm, if node is already sourced then it just runs npm.That function creates this issue #3152
If I change the function to this:
The completions works fine, but the function it's not called anymore.
any help?
For 2.3.1 release:
The text was updated successfully, but these errors were encountered: