Skip to content

Instantly share code, notes, and snippets.

@steelcowboy
Created August 9, 2020 01:08
Show Gist options
  • Save steelcowboy/4703017431c6c129833fade518385b2d to your computer and use it in GitHub Desktop.
Save steelcowboy/4703017431c6c129833fade518385b2d to your computer and use it in GitHub Desktop.
Demo nvm install mksh
testuser@fbd5d5ceabfa:~ $ echo $SHELL
/usr/bin/mksh
testuser@fbd5d5ceabfa:~ $ ls -a
. .. .bash_logout .bashrc .mkshrc .profile install.sh
testuser@fbd5d5ceabfa:~ $ ./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 | 7.10 MiB/s, done.
Resolving deltas: 100% (35/35), done.
=> Compressing and cleaning up git repository
=> Appending nvm source string to /home/testuser/.mkshrc
=> bash_completion source string already in /home/testuser/.mkshrc
=> 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