-
-
Notifications
You must be signed in to change notification settings - Fork 118
nvm completion not loading properly #85
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
Comments
Same here 😟 |
same here, macbook with m1 |
same here :-( |
Oscaner
added a commit
to Oscaner/zsh-nvm
that referenced
this issue
Sep 13, 2023
metalinspired
added a commit
to metalinspired/zsh-nvm
that referenced
this issue
Feb 8, 2025
lukechilds#85: fix _zsh_nvm_completion on macos homebrew.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using this plugin (installed using antigen), and setting
export NVM_COMPLETION=true
, I don’t get proper completion when I typenvm <tab>
. I get path based completion suggestions instead.Zsh version:
zsh 5.8 (x86_64-apple-darwin21.0)
MacOS version:
12.0.1
Macbook M1 Pro
I dug around in the code, and found that when I run the
_zsh_nvm_completion
function manually from my prompt, completion works fine (click to watch below recording). What is weird is when I edited the file to check that function was running, and sourcing$NVM_DIR/bash_completion
successfully, I could see that it was.I took a look at
$NVM_DIR/bash_completion
to see what I could make out, and usedset -x
to get some debug. I can see that calling the function manually after opening a new shell seems to do a lot more. I’m not familiar enough with completion to understand where it’s going wrong. I can’t follow thecomplete:13
debug to see why nothing else runs. The call tocomplete
on the last line of$NVM_DIR/bash_completion
completes without error.Here is the debug from opening a new shell:
And here’s the debug from calling the
_zsh_nvm_completion
function for comparison:The text was updated successfully, but these errors were encountered: