lukechilds / zsh-nvm

Zsh plugin for installing, updating and loading nvm
MIT License
2.24k stars 113 forks source link

_zsh_nvm_global_binaries:1: no matches found: /Users/simen/.nvm/v0*/bin/* #3

Closed SimenB closed 8 years ago

SimenB commented 8 years ago

First of all, thanks for this!

Running master gives the error in the title, but using the commit before that (https://github.com/lukechilds/zsh-nvm/commit/1c6d8dd15ec0f177c56005033bfb77ecc6e28cea) works great.

If I get that error, it doesn't work, so it's not just noise.

This is having just node 6 installed.

lukechilds commented 8 years ago

Thanks for the detailed feedback, pretty sure I know what's causing it, I'll have a tinker and keep you posted 👍

lukechilds commented 8 years ago

I take it you have lazy loading enabled?

SimenB commented 8 years ago

Yup 😄

lukechilds commented 8 years ago

Sweet, if you turn off lady loading for now it should work, I'll get lazy loading fixed pronto though :)

SimenB commented 8 years ago

I'll just stay at https://github.com/lukechilds/zsh-nvm/commit/1c6d8dd15ec0f177c56005033bfb77ecc6e28cea, that works for now (WITH lazy loading).

lukechilds commented 8 years ago

Yeah, the lazy loading on that version doesn't work with node versions <0.10. They are installed in a different path. I had updated the binary search to check both paths but zsh was complaining the the <0.10 glob wasn't matching anything on your system as you didn't have any <0.10 versions installed.

I've Just applied nullglob to both the globs and now it should work fine if any of them don't match.

https://github.com/lukechilds/zsh-nvm/commit/870962197372ddc27360ac8e18446c2a098c969c

Can you try updating and let me know if it works for you?

SimenB commented 8 years ago

Yup, works great now. Thanks for the quick turnaround!