summarylogtreecommitdiffstats
path: root/nvm-git.install
blob: b9b188a7cb031f6effebe912b39eb60b0ffe6f4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
## 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' >> ~/.zprofile

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 .zprofile etc.), delete the line:

source /usr/share/nvm/init-nvm.sh
"
}

# vim:set ts=2 sw=2 et: