• This repository has been archived on 02/Jun/2020
  • Stars
    star
    187
  • Rank 201,647 (Top 5 %)
  • Language
    Shell
  • Created over 9 years ago
  • Updated over 8 years ago

Reviews

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

Repository Details

NVM wrapper for the fish shell - NOT MAINTAINED

NVM fish wrapper

GitHub tagLicenseCode of Conduct

A heads-up that someone has gone and created a generic fish wrapper for bash utilities, which probably works much better than this. It's called bass and it's everything I wanted to do with this project, but done right. I think that's the end of nvm-fish-wrapper. It's been a good ride! Thank you all and go have wonderful further adventures with fish, Node.js, and nvm!


NVM wrapper for the fish shell.

All nvm really does to the shell is modify $PATH, $MANPATH, and a bunch of $NVM_* vars. No binstubs afaics. — https://twitter.com/passcod/status/563948458382331905

So creating a fish wrapper for it is really simple and will work forever. Why did people do anything else. Github incoming. — https://twitter.com/passcod/status/563948749395742721

Installing

You need bash, fish, git, grep, cut, env, mktemp, and test. Unless you have a weird environment, the last five should be there already. If you don't have fish then I'm not sure what you're doing here. Git is required for installing and updating, but you could conceivably copy things in place, whatever. Bash is required for running, but you'll never need to touch it.

Start by installing nvm the manual way:

~> git clone https://github.com/creationix/nvm.git ~/.nvm
~> cd ~/.nvm
~/.nvm> git checkout (git describe --abbrev=0 --tags)

If you're on OS X, you can also install nvm using Homebrew:

~> brew install nvm
~> mkdir ~/.nvm
~> ln -s (brew --prefix nvm)/nvm.sh ~/.nvm/nvm.sh

You'll need to add set -x NVM_DIR ~/.nvm before sourcing nvm.fish (below) for the wrapper to work with the brew-installed nvm [1].

Note: I can't test on OS X, so there are several open bugs at the moment I cannot address by myself. These bugs seem to only be Homebrew-related, so if you don't use Homebrew or don't have Homebrew coreutils or didn't install nvm using Homebrew or some combination of the three, chances are pretty good that it works!

You don't need to source anything or add stuff to .bashrc.

Then install the wrapper:

~> cd ~/.config/fish
~/.c/fish> git clone git://github.com/passcod/nvm-fish-wrapper.git nvm-wrapper

Finally edit your config.fish and add this line:

source ~/.config/fish/nvm-wrapper/nvm.fish

And reload your shells.

Using

Just use nvm as you would in other shells, e.g.

~> nvm install iojs
################################################### 100.0%
WARNING: checksums are currently disabled for io.js
Now using io.js v2.3.1

~> node -v
v2.3.1

~> nvm use stable
Now using node v0.12.5

~> node -v
v0.12.5

Etc

Made by Félix Saparelli, released in the Public Domain (or CC0-1.0 if Public Domain dedications are disallowed or limited in your jurisdiction).

Also made possible by the contributors and the many more people using it.

More Repositories

1

catflap

🐈🚪 Creates listening sockets and passes their FDs to a child process. You should probably use systemfd instead!
Rust
139
star
2

twd

TweetDeck Wrapper
JavaScript
49
star
3

certainly

DEPRECATED — You should use step instead. // 🎓 Handy simple tool for common certificate-related operations.
Rust
41
star
4

mtwitter

Node.js Twitter API
JavaScript
37
star
5

DynWorker

Web threading made easy
JavaScript
24
star
6

kndl

(Browser-)Chrome-less Kindle Cloud Reader
CoffeeScript
19
star
7

docker-rproxy

Flexible, automagical reverse proxy for Docker
Ruby
16
star
8

accord

Discord API client to power Discord API clients via the power of love, friendship, and HTTP 💖
Rust
16
star
9

cni-plugins

Library to create CNI plugins in Rust, and a set of plugins
Rust
15
star
10

tmux-powerline

This is my fork, the main repo is erikw/tmux-powerline, please go there.
Shell
14
star
11

caskbot

A sophisticated IRC bot for #homebrew-cask
Ruby
12
star
12

noodle

Tiny daemon to implement floating IPs with RFC5944 ARP announcements
Rust
9
star
13

slk

DEPRECATED: Slack now has a native Linux app — Slack wrapper for use as a desktop app
Shell
9
star
14

ct

Cats files, lists dirs
Rust
9
star
15

walker

DEPRECATED Recursive directory walk aka fs::walk_dir()
Rust
8
star
16

wikt

Experimental playground for wiktionary data
Rust
8
star
17

omelette

Unused, unmaintained, and deprecated!!! 🍳 Archiver and deleter for tweets
Rust
8
star
18

UPPERCASE-NPM

LETS YOU WRITE NPM AND HAVE IT RUN
JavaScript
6
star
19

splash

💦 RF Signal Propagation analysis tool (eventually). Learning project (currently)
Rust
6
star
20

mfdrm

The Manifold Realms, standalone viewer
6
star
21

winskopeo

Windows builds of Skopeo
5
star
22

ttt

Timeless Time Tracking
Rust
5
star
23

merhash

Bruteforcing the devil
Rust
5
star
24

docker-prototypo

Experimental deployment of Prototypo on Docker.
Shell
5
star
25

tomo

Experimental archive format with built-in indexing, compression, checksumming, signing, and incremental construction
Rust
5
star
26

blook

The passcod.name website, which is also an mdbook
G-code
4
star
27

whio

Twitter for superusers
4
star
28

capchat

Posts CAP alerts to a chat room
Rust
4
star
29

stalc

Rust
4
star
30

vaire

React component that renders an auto-updating datetime
JavaScript
4
star
31

rust-clutter

Rust bindings for Clutter
Rust
4
star
32

babel-plugin-transform-iota

Transforms iota() calls into ever-increasing literals.
JavaScript
4
star
33

trusted-ca

Experiment in Trusting CAs
4
star
34

knex-waitfordb

Small utility that reads your knexfile.js and blocks until the DB is ready
JavaScript
4
star
35

sebastian

A replacement for Conky
Ruby
3
star
36

figleaf

Configuration as flexible as a leaf
Rust
3
star
37

blograph

Blogging done my way
Rust
3
star
38

ashring

High-level cryptographic system; provides components that strongly enforce their security via cryptography.
Rust
3
star
39

libworker.js

source-less workers
CoffeeScript
3
star
40

pkgs

AUR packages
Shell
3
star
41

config-nvim

~/.config/nvim
Vim Script
3
star
42

slicism

HTTP server that passes requests to Wasm programs
Rust
3
star
43

rast

A Rust Webserver Interface
Rust
3
star
44

wants

3
star
45

heroku-buildpack-neon

Heroku buildpack for Neon (Rust+Node) apps
Shell
3
star
46

i-kdl

Inline-KDL Embedded Document Language
Rust
2
star
47

mah-jong

Cross platform mah-jong (not solitaire) network+AI game
C
2
star
48

caretaker

A “contribution system addon” for open software projects to ease maintainer burden and encourage contributions even at low activity levels
SCSS
2
star
49

irmo

Memory store
Rust
2
star
50

rfc-exception-coalesce-operator

(Pre-draft) PHP RFC for the exception coalesce operator
2
star
51

tildes

A page dedicated to tildes
HTML
2
star
52

rust-base85

Base85 in Rust
2
star
53

testificat

A/B testing for cats (defunct)
Ruby
2
star
54

hypermap

Like a BiMap, but with N values instead of pairs
JavaScript
2
star
55

postier

Ultra-minimal webhook server
Rust
2
star
56

defnew

A toolkit for interacting with C ABI binary data and libc, from a shell.
Rust
2
star
57

plong-server

Pseudo-peer-to-peer API.
Go
1
star
58

noml

Learning project: TOML parser using Nom
Rust
1
star
59

ppaxos

An efficient client-based Paxos algorithm that maintains globally consistent state among multiple passive storage backends
Rust
1
star
60

fulliautomatisk

[Unmaintained] 🔨 Internal tool to safely monitor an Asterisk internal database for changes
Rust
1
star
61

fantail

Chirp chirp. Simple schedule-managed queue. ♫ ♭♩
JavaScript
1
star
62

quenya

Rustdoc-inspired code documentation for JS and others
JavaScript
1
star
63

passcod.github.io

The homepage of @passcod until 2021
HTML
1
star
64

castic

Static cask+homebrew formula parser. Unmaintained.
Ruby
1
star
65

poele

Redis queue processor in Go
Go
1
star
66

quotes

Rust
1
star
67

beta-af

I think this was the first Adventure Forest website.
PHP
1
star
68

docker-arch-updated

Docker image that takes Arch and updates it
1
star
69

track

Ruby
1
star
70

bin

~/bin
Shell
1
star
71

dashes

HTML
1
star
72

trebuchet

Lightweight deploy system based on Btrfs volumes (experiment, unfinished and discontinued)
Rust
1
star
73

what

A tiny static site generator for one purpose: showing off what I'm doing now.
JavaScript
1
star
74

kifkif

Inline edit suggestion system for web publications
Ruby
1
star
75

pseudo-peerjs

CoffeeScript
1
star
76

thebook

Writing found in an old backup
1
star
77

mcr

Displays full chapters from MR.net in a simple interface.
JavaScript
1
star
78

adventofcode22

Advent of Code 2022
1
star
79

My-Manga

A nifty little interface for viewing manga
HTML
1
star
80

reasonable.kiwi

“Why did I block/mute/follow/unfollow X?!”
Rust
1
star
81

first-website

My first personal website
PHP
1
star
82

vue-sfc-parser

A limited parser for Vue Single File Components
JavaScript
1
star
83

quenya-estree

Quenya ESTree Enhancer
JavaScript
1
star
84

witness

Implements a distributed not-necessarily-timestamped witnessing service.
Rust
1
star
85

mechanicalbird

A timer and work tracker. Sometimes the simpler things are best.
JavaScript
1
star
86

scrap.book

Other misc things I was doing on the web in 2010. Companion:
HTML
1
star
87

licuri

Compliant data:uri parser
CoffeeScript
1
star
88

tract

Compile templates with a simple command
JavaScript
1
star
89

colourcal

A calendar I made for Adventure Forest that could have each day changed to a specific colour in a simple UI. Surprisingly hard to find equivalents nowadays!
CSS
1
star
90

rpc-impl-macro

An alternate macro for paritytech/jsonrpc services
Rust
1
star
91

blog

Ruby
1
star
92

unicobr

Shell
1
star
93

citeworks

Rust crates for citation formats and tools
Rust
1
star
94

sled-node

A modern lock-free atomic embedded database (bindings for sled)
Rust
1
star
95

funstring

Convert functions into strings. Boring, right?
JavaScript
1
star
96

book-edit

Misc things I was doing on the web in 2010. Companion:
JavaScript
1
star
97

constellationd

Lightweight no-setup agent for deploys and dev -- Current code was mostly a toy as a learning project. People seriously interested in this kind of thing should use Hashicorp Serf instead.
Rust
1
star
98

how-to-fall-to-the-dark-side-in-10-minutes-and-save-jerks-from-themselves

A Star Wars fanfiction
1
star