FabioAntunes / fish-nvm

nvm wrapper for fish-shell
MIT License
511 stars 20 forks source link

How does fish-nvm compare to fast-nvm-fish? #31

Closed jorgebucaran closed 5 years ago

jorgebucaran commented 5 years ago

@FabioAntunes 👋

I'm trying to improve the Awesome Fish list and noticed both this package and @brigand's fast-nvm-fish are nvm wrappers (require nvm to be previously installed) and I was wondering how does one compare to the other. I plan to include both in the list, but I don't want to repeat myself.

This is what I have.

But it begs the question: isn't fish-nvm efficient or fast-fish-nvm completion-rich too?

FabioAntunes commented 5 years ago

So the main difference is that, https://github.com/brigand/fast-nvm-fish partially uses nvm, it's not actually a nvm wrapper because it manipulates the PATH instead of letting nvm doing it.

As for fish-nvm is a wrapper around nvm, it's just a set of alias that allows you to delay the sourcing of nvm until is actually used.

The main issue with nvm being slow is that, when it's manipulating the path it calls npm config get prefix and there's a whole issue related to explaining that https://github.com/creationix/nvm/issues/1596

So if you really need to run as closest as possible to the original nvm, because reasons, then fish-nvm is the right tool.

If you just want a fast nvm for local development then fast-nvm-fish maybe is the best.

Also I think fish-nvm has Completion-rich description because It actually provides fish completion to the nvm command

jorgebucaran commented 5 years ago

@FabioAntunes Thank you!! I'll describe them as follows. Hope it's fine.