Comments (7)
And I figured out one solution, is that add bass source $NVM_DIR/nvm.sh
to config.fish
from fish-nvm.
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.
yep.. I noticed that before.. actually, it's much slower
is that caused by bass
process?
anyway, thanks the code!
from fish-nvm.
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.
@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.
@bucaran thx~.. though i'm looking for a more native way to install Node, i'll give a try!
from fish-nvm.
@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)
- Can't launch node REPL anymore HOT 8
- Error: Cannot find module 'prompt' HOT 2
- Fish nvm: 'node' is currently not installed, try running npm i -g node HOT 7
- Breaks `which`? HOT 11
- Autocomplete is very slow HOT 3
- Update Docs HOT 2
- Breaks reverse search plugin
- Quesiton about lazy loading and the`init_nvm` event HOT 2
- nvm.sh must be linked/copied to $HOME/.nvm HOT 1
- Usage with "fundle"
- Node prints all output first when quitting the program HOT 2
- Error when using any nvm's node HOT 3
- Autocomplete very slow. HOT 1
- type: Invalid combination of options HOT 8
- How to uninstall? HOT 1
- Fish 3.2.2 update issue HOT 3
- Auto nvm use when detecting .nvmrc ? HOT 3
- .nvmrc should be searched by traversing the directory tree up HOT 1
- alias command is not defined HOT 1
- does not fix "NVM not found" error when creating a new tmux pane HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fish-nvm.