I'm using zsh-nvm-plugin with oh-my-zsh. It makes the yarn / pnpm as a shell function, so that we don't need to initialize nvm when we initialize the zsh.
And when I use ni in a new shell. It'll display following message:
[ni] Detected pnpm but it doesn't seem to be installed.
I don't know what's the behaviour if I accept it. But I really want ni could recognize the shell function wrapper.
Suggested solution
I have no idea about how ni to recognize the package manager installation situation. But I think using the type command to detect this is a workaround.
Clear and concise description of the problem
I'm using
zsh-nvm-plugin
withoh-my-zsh
. It makes theyarn
/pnpm
as a shell function, so that we don't need to initialize nvm when we initialize the zsh.And when I use
ni
in a new shell. It'll display following message:or
I don't know what's the behaviour if I accept it. But I really want
ni
could recognize the shell function wrapper.Suggested solution
I have no idea about how
ni
to recognize the package manager installation situation. But I think using thetype
command to detect this is a workaround.Alternative
No response
Additional context
No response
Validations