oh-my-bash/plugins/nvm
Rishikesh Darandale 3ebd9b84f4
plugins: added nvm and sdkman (#150)
* feat(plugins): added sdkman plugin

* feat(plugins): added nvm plugin

* fix: fixed the codacy issues
2020-05-11 14:29:06 +07:00
..
nvm.plugin.sh plugins: added nvm and sdkman (#150) 2020-05-11 14:29:06 +07:00
README.md plugins: added nvm and sdkman (#150) 2020-05-11 14:29:06 +07:00

nvm plugin

This plugin automatically source nvm1

Installation

Install nvm

Lets install2 the nvm without updaing shell config!

export NVM_DIR="$HOME/.nvm" && (
  git clone https://github.com/nvm-sh/nvm.git "$NVM_DIR"
  cd "$NVM_DIR"
  git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
) && \. "$NVM_DIR/nvm.sh"

Include nvm as plugin

plugins=(
  git
  nvm
)

nvm completion configuration

completions=(
  git
  composer
  ssh
  nvm
)