-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
which
broken in zsh
#604
Comments
Maybe another suggestion using same shell executable: which -a node | grep "$NVM_DIR" |
@dhcmrlchtdj How did you install It seems like you might have an alias in your profile of |
Maybe this is better: which -a node | grep -e "/node$" -m 1 Find first match ending in "/node", which should be the the first node executable in PATH. |
@ljharb That's what it is, I have the exact same environment, in zsh the which command shows output for aliases, while it outputs nothing in sh. |
I think you need |
will
and following commad maybe better
|
I'm not sure I understand the proposed solution but I'll be happy to evaluate a PR for it. |
Closed via #605. |
nvm current
andnvm ls
can't detect current node version i choosen.i found it caused by
which
.i use zsh and alias
node
tonode --harmony
.but
which
in zsh can't work well with alias.can we use
whence -p
to instead ofwhich
in zsh?The text was updated successfully, but these errors were encountered: