add nvmng plugin

This adds the nvmng plugin, which loads nvm with the flag --fast-reuse, which is exposed
by nvm-ng. This is a hard fork of nvm which contains patches that accelerate load time
for nvm, to get back to a more smooth behavior of your shell.

Signed-off-by: Tobias Gurtzick <magic@wizardtales.com>
This commit is contained in:
Tobias Gurtzick 2018-03-12 14:27:13 +01:00
commit b811acde9d
No known key found for this signature in database
GPG key ID: 6C56E4E3D2EAC901
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# Set NVM_DIR if it isn't already defined
[[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm"
# Load nvm if it exists
[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh" --fast-reuse