Skip to content

Instantly share code, notes, and snippets.

@undoZen
Created January 18, 2015 02:03
Show Gist options
  • Save undoZen/0d80b037e97580d6c4d7 to your computer and use it in GitHub Desktop.
Save undoZen/0d80b037e97580d6c4d7 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
export N_PREFIX=$HOME/.ivm
export N_BIN=$N_PREFIX/bin
test -d $N_BIN || mkdir -p $N_BIN
pushd $N_BIN
wget https://raw.githubusercontent.com/demohi/ivm/ce260674aeb8a446a3790784461156085f634c5b/bin/ivm
chmod a+x ivm
popd
echo 'export N_PREFIX=$HOME/.ivm' >> .bashrc
echo 'export PATH=$N_BIN:$PATH' >> .bashrc
ivm || true
ivm latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment