Skip to content

Instantly share code, notes, and snippets.

@theaccordance
Created January 9, 2020 22:26
Show Gist options
  • Save theaccordance/971d476d474f4a45ccf4d5d49d96b68d to your computer and use it in GitHub Desktop.
Save theaccordance/971d476d474f4a45ccf4d5d49d96b68d to your computer and use it in GitHub Desktop.
Sets the current node version to what's defined by the project & then sets it as the default for the system
#!/bin/bash
nvm use && NODE_VER=$(node -v) && nvm alias default $NODE_VER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment