diff options
author | Tom Wadley | 2015-11-06 12:35:57 +0000 |
---|---|---|
committer | Tom Wadley | 2015-11-06 12:35:57 +0000 |
commit | 1471f11ffba36cfbcfcce4c3cf3c9b45c1eaf681 (patch) | |
tree | 3b7e271a81112e75a481c983f43e812b302b45dd /nvm.install | |
parent | d628e5184be784aeec44407a6710dc58846a7add (diff) | |
download | aur-1471f11ffba36cfbcfcce4c3cf3c9b45c1eaf681.tar.gz |
Improve documentation
Diffstat (limited to 'nvm.install')
-rw-r--r-- | nvm.install | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/nvm.install b/nvm.install index 88a452e767b7..b9b188a7cb03 100644 --- a/nvm.install +++ b/nvm.install @@ -2,20 +2,26 @@ post_install() { echo " You need to source nvm before you can use it. Do one of the following -or similar depending on your shell: +or similar depending on your shell (and then restart your shell): echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.zprofile -Alternatively, you can copy the contents of init-nvm.sh to your -.bashrc (or similar) if you would like an NVM_DIR other than ~/.nvm +You can now install node.js versions (e.g. nvm install 5.0) and +activate them (e.g. nvm use 5.0). You may want to activate your +preferred node.js version in your .bashrc (or similar) after +sourcing init-nvm.sh. + +init-nvm.sh is a convenience script which does the following: " -} + cat usr/share/nvm/init-nvm.sh + echo " +You may wish to customize and put these lines directly in your +.bashrc (or similar) if, for example, you would like an NVM_DIR +other than ~/.nvm or you don't want bash completion. -## arg 1: the new package version -## arg 2: the old package version -post_upgrade() { - post_install +See the nvm readme for more information: https://github.com/creationix/nvm +" } ## arg 1: the old package version |