Skip to content

Instantly share code, notes, and snippets.

@steelcowboy
Created August 9, 2020 00:01
Show Gist options
  • Save steelcowboy/1af21c23cac3208b9dc77676475e65d3 to your computer and use it in GitHub Desktop.
Save steelcowboy/1af21c23cac3208b9dc77676475e65d3 to your computer and use it in GitHub Desktop.
Demo nvm install in dash
$ echo $SHELL
$ ls -a
. .. .bash_logout .bashrc .mkshrc .profile install.sh
$ ./install.sh
=> Downloading nvm from git to '/home/testuser/.nvm'
=> Cloning into '/home/testuser/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.
remote: Total 290 (delta 35), reused 97 (delta 20), pack-reused 0
Receiving objects: 100% (290/290), 163.27 KiB | 9.60 MiB/s, done.
Resolving deltas: 100% (35/35), done.
=> Compressing and cleaning up git repository
=> Appending nvm source string to /home/testuser/.profile
=> bash_completion source string already in /home/testuser/.profile
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment