## arg 1: the new package version post_install() { echo " You need to source nvm before you can use it. Do one of the following 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' >> ~/.zshrc 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. See the nvm readme for more information: https://github.com/creationix/nvm " } ## arg 1: the old package version post_remove() { echo " Don't forget to clean up any lines added to your shell's startup script! For example, from your .bashrc (or .zshrc etc.), delete the line: source /usr/share/nvm/init-nvm.sh " } # vim:set ts=2 sw=2 et: