Giter VIP home page Giter VIP logo

Comments (7)

mr-pinzhang avatar mr-pinzhang commented on June 9, 2024

And I figured out one solution, is that add bass source $NVM_DIR/nvm.sh to config.fish

from fish-nvm.

FabioAntunes avatar FabioAntunes commented on June 9, 2024

That's the point, sourcing nvm everytime you open a new terminal will slow it down by a couple of seconds, this plugins only sources nvm when you run nvm, npm or node if you want it to be runnig whenever you open the terminal just add this to your config.fish

if not type -q bass
    echo 'Bass is not installed please install it running fisher edc/bass'
else
   bass source $NVM_DIR/nvm.sh >/dev/null ^&1
end

from fish-nvm.

mr-pinzhang avatar mr-pinzhang commented on June 9, 2024

yep.. I noticed that before.. actually, it's much slower
is that caused by bass process?
anyway, thanks the code!

from fish-nvm.

FabioAntunes avatar FabioAntunes commented on June 9, 2024

The biggest problem is in nvm itself, more info in nvm-sh/nvm#860 and nvm-sh/nvm#703

Of course sourcing bash code in fish adds a couple of milliseconds

from fish-nvm.

 avatar commented on June 9, 2024

@bjmin If you are not constrained to using nvm (e.g, company rule, etc), I recommend you https://github.com/fisherman/fin.

from fish-nvm.

mr-pinzhang avatar mr-pinzhang commented on June 9, 2024

@bucaran thx~.. though i'm looking for a more native way to install Node, i'll give a try!

from fish-nvm.

 avatar commented on June 9, 2024

@bjmin I could be completely wrong, and please @FabioAntunes correct me if I am wrong, but I see little benefit to building from source unless you actually want to fiddle with the source code, in which case, sure go ahead :)

from fish-nvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.