From 6ac7ecf7dc20ba55da90b05db77256c7b9cc1f8c Mon Sep 17 00:00:00 2001 From: wiserweb Date: Tue, 26 Jul 2016 02:31:07 -0400 Subject: [PATCH] Update README.markdown Specifies the lines that will be added by the installation script. --- README.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.markdown b/README.markdown index a67e438..35f9e45 100644 --- a/README.markdown +++ b/README.markdown @@ -48,6 +48,11 @@ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`). +```sh +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm +``` + You can customize the install source, directory, profile, and version using the `NVM_SOURCE`, `NVM_DIR`, `PROFILE`, and `NODE_VERSION` variables. Eg: `curl ... | NVM_DIR=/usr/local/nvm bash` for a global install.