-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
bash_completion script creates error on osx with zsh #2325
Comments
https://github.com/nvm-sh/nvm/blob/master/bash_completion#L83-L93 should be handling that. What version of nvm are you using? (please always fill out the issue template; it's there for a reason) |
Hi @ljharb Some people seem to have this issue, I answered my temporary (or final) solution on Stack Exchange https://apple.stackexchange.com/questions/296477/my-command-line-says-complete13-command-not-found-compdef/404470#404470 |
Thanks. Your solution should be unnecessary (https://github.com/nvm-sh/nvm/blob/master/bash_completion#L86-L93) so I'm not sure what the problem is. I do note you're using an outdated version of nvm (0.33.8) - can you try installing the latest, v0.36.0? |
Yea, there are some lines that are missing in my version of bash_completion. I am currently in homeoffice where I do not have this issue. I will try it when I am back at the office. But I think the code might not work because compinit must be called before bashcompinit. Can be wrong though.
|
Ah! If that's indeed the case, then a PR to fix the bash_completion file would be appreciated. |
For some users on macOSX with zsh this snippet creates an error:
The error reads:
complete:13: command not found: compdef
This happens because at the end of the bash_completion script
bashcompinit
is called but compinit is not yet called/loaded.The following code fixes the issue, but maybe this can somehow be handled by the bash_completion script?
Operating system and version:
macOS 10.15.6
nvm debug
output:nvm ls
output:How did you install
nvm
?install script
What steps did you perform?
nothing
What happened?
error showed up in PHPStorm Terminal
What did you expect to happen?
no error PHPStorm Terminal
Is there anything in any of your profile files that modifies the
PATH
?export PATH="/usr/local/bin:$PATH"
The text was updated successfully, but these errors were encountered: