• Stars
    star
    123
  • Rank 290,145 (Top 6 %)
  • Language
    Shell
  • License
    Other
  • Created over 8 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

a wrapper around node version manager for fish shell with good performance

What is nvm?

nvm is a tool for managing multiple versions of node and npm.

What is fast-nvm-fish?

It's a utility that manipulates your PATH to include the desired version of node. Other solutions require parsing env's output and do other slow things. Before this, there was an extra second or two added to my shell startup time. With about 10 versions of node installed this script takes 50ms to run.

Alternatives

You can get even better performance, with a solution that works in fish/bash/zsh by using fnm.

Usage

nvm install 5
nvm use 5 # or e.g. 5.8 or 5.8.1

Install:

Requirements: you must have Fish 2.6.0 or newer.

First install nvm if you haven't already. You can check the nvm readme for a more up to data install command.

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

Then install fast-nvm-fish:

curl -sSL https://raw.githubusercontent.com/brigand/fast-nvm-fish/master/nvm.fish > ~/.config/fish/functions/nvm.fish

Or using fisher:

fisher add brigand/fast-nvm-fish

The fish_user_paths universal variable must exist before running nvm commands. Run this once in your fish shell:

set -U fish_user_paths

To make it work on new shells you'll need to set a version in config.fish.

echo 'nvm use 7.2.1' >> ~/.config/fish/config.fish

If you have nvm installed anywhere other than ~/.nvm, set a global variable in your config.fish file before first invoking nvm use.

set -gx NVM_DIR ~/custom_path/nvm
nvm use 7.2.1

More Repositories

1

react-mixin

mixins in react with es6 style classes
JavaScript
1,120
star
2

babel-plugin-flow-react-proptypes

A babel plugin to generate React PropTypes definitions from Flow type declarations.
JavaScript
433
star
3

react-zeroclipboard

react component that abstracts zeroclipboard
JavaScript
96
star
4

glint

glint is a friendly tool for creating commits in the Conventional Commit style
Rust
86
star
5

react-style-proptype

Validates style objects by ensuring the keys are valid css property names (in camelcase form).
JavaScript
58
star
6

react-scratch

JavaScript
52
star
7

smart-mixin

create mixin policies for specific uses
JavaScript
43
star
8

ink-progress-bar

JavaScript
43
star
9

react-update-if-changed

JavaScript
31
star
10

react-pixi-boilerplate

JavaScript
29
star
11

react-safe-html

safely use untrusted html in your react app — very customizable
JavaScript
25
star
12

semantic-tumblr

a new way to do tumblr themes
CSS
19
star
13

react-purerender

the purerender mixin in a decorator compatible way
JavaScript
18
star
14

jellobot

JavaScript
16
star
15

react-with-important-style

JavaScript
11
star
16

imset

immutable updates that look mutable with template strings
JavaScript
8
star
17

class-bind

JavaScript
8
star
18

config-wizard

JavaScript
7
star
19

AhkDll-.NET

Work with AutoHotkey.dll with .NET
C#
7
star
20

react-pixi-play

JavaScript
7
star
21

AutoHotkey-Quick-Help-XML

XML File for AutoHotkey Help
AutoHotkey
7
star
22

rearm

a collection of React.js abstractions for non-trivial apps
JavaScript
6
star
23

babel-plugin-testing-example

JavaScript
6
star
24

react-ck5

JavaScript
5
star
25

lorem-ipsum

Filler text generator for use with Appifyer
AutoHotkey
5
star
26

react-obcache

JavaScript
4
star
27

ahkcmd

The power of AutoHotkey on the commandline
C#
4
star
28

scrape-mdn

HTML
4
star
29

react-propmatch

propmatch is a useful utility for all high order components
JavaScript
4
star
30

docker-js-eval

JavaScript
4
star
31

ahk-stdlib

Collection of AutoHotkey scripts inteneded to be made available for all users
4
star
32

fish-functions

Shell
4
star
33

docker-ruby

minimal ruby container on alpine linux
Makefile
4
star
34

react-global-event-method

4
star
35

react-valid

JavaScript
3
star
36

obcache

JavaScript
3
star
37

react-global-style

Set global styles (e.g. on document.body) declaratively.
JavaScript
3
star
38

nib

bite sized JavaScript functions
JavaScript
3
star
39

ahk4me-Shorten-Page

A custom domain shortening site that uses jQuery and PHP to shorten URLs
JavaScript
3
star
40

reflux-provides-store

JavaScript
3
star
41

invert-promise

JavaScript
3
star
42

Can-Shoot

A simple 2D target shooting game
C#
3
star
43

ctjs-rs

compile time javascript as a rust proc macro
Rust
2
star
44

brigand.github.com

HTML
2
star
45

touchas

Create new files from templates
Python
2
star
46

newcore

JavaScript
2
star
47

exclusive-properties

JavaScript
2
star
48

high-redux

JavaScript
2
star
49

ject.dev

Rust
2
star
50

twiddlekins

IRC bot written in C#
C#
2
star
51

knockout-widgets

easy to insert widgets for KnockoutJS
JavaScript
2
star
52

pattahn

Powerful and clean pattern matching for JS
JavaScript
2
star
53

react-novus

choose any combination of tools for your react app and get a custom starter project
JavaScript
2
star
54

renderhook

a macro that allows hooks to transform or wrap what your component returns
JavaScript
2
star
55

jsprint2

console.log for the document
JavaScript
2
star
56

craft-js

JavaScript
2
star
57

express-jwt-cookie

JavaScript
2
star
58

json-transform

enforce a schema and perform transformations on data from APIs
JavaScript
2
star
59

count-strings

JavaScript
2
star
60

encon

an optionally-encrypted config format, built on top of JSON
Rust
2
star
61

Coffee-TicTacToe

a simple TicTacToe game base written in CoffeeScript
CoffeeScript
2
star
62

short-num

JavaScript
2
star
63

react-web-component

JavaScript
1
star
64

src

web development asset url and download tool
Python
1
star
65

fixture-scrape

1
star
66

jsx-equals

JavaScript
1
star
67

eji

the emoji cli tool you've always wanted
JavaScript
1
star
68

thisize

converts normal functions to methods
JavaScript
1
star
69

restartable-spawn

1
star
70

react-doc

1
star
71

react-no-compromise-boilerplate

JavaScript
1
star
72

docker-elasticmq

Python
1
star
73

atcompileify

JavaScript
1
star
74

idle-queue

JavaScript
1
star
75

sync-to-async

1
star
76

ballet

resize windows by expression
HTML
1
star
77

react-secretary

1
star
78

subgen

JavaScript
1
star
79

react-directive

1
star
80

ActionEngine

a canvas game engine that makes sense
CoffeeScript
1
star
81

react-two

JavaScript
1
star
82

ezpaste

JavaScript
1
star
83

react-flow-of-data

JavaScript
1
star
84

babel-ast-literal-plugin

1
star
85

knead

JavaScript
1
star
86

react-with-viewport

This high order component provides the viewport size to the child in an efficient ways.
JavaScript
1
star
87

ddir

Rust
1
star
88

react-timer-mixin

A Timer Mixin for React.js Components
1
star
89

FictionalGameDesign

just a fun experiment, has music and everything :-)
JavaScript
1
star
90

tokio-cmd-macros

1
star
91

piter

piter allows abstract pagination with the convenience of async iterators
TypeScript
1
star
92

bem-cx

powerful BEM utility for use in js
JavaScript
1
star
93

iup

1
star
94

atom-shide-prepublish

hack to work around apm publish in subdirectory of git repo
JavaScript
1
star
95

paste.brigand.me

Rust
1
star
96

react-edit

JavaScript
1
star
97

docker-php-ast

PHP
1
star
98

simpleflux

1
star
99

srcgen

generate code with your mouse
JavaScript
1
star
100

docker-psql

1
star