ni
ni copied to clipboard
Feature Request: work better with nvm lazy load script
Clear and concise description of the problem
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 yarn but it doesn't seem to be installed. ✖ Would you like to globally install yarn (​https://classic.yarnpkg.com/en/docs/install​)? …
or
[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.
Alternative
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.