lukechilds / zsh-nvm

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

Error on lazy loading #25

Closed Erwyn closed 7 years ago

Erwyn commented 7 years ago

Hello,

I have an error if i use lazy loading, here is what I get when opening a terminal:

/usr/bin/which: no bacon-love in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no create-react-app in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no electron in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no elementary-electron in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no functional-javascript in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no functional-javascript-workshop in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no oni in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no oni-vim in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no sccjs in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no scope-chains-closures in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no stream-adventure in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no yarn in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no yarnpkg in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)
/usr/bin/which: no nvm in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/martin/bin:/usr/local/sbin:/usr/sbin)

Do you have any idea of where it could come from?

lukechilds commented 7 years ago

Can you try using the zsh builtin which rather than /usr/bin/which?

Related: https://github.com/lukechilds/zsh-nvm/pull/22#issuecomment-275586801

Erwyn commented 7 years ago

nice one... I am as well on Fedora 25, this was the exact same issue, I just added the unalias call at the beginnig of my .zshrc