Skip to content

Instantly share code, notes, and snippets.

@nalabjp
Created April 2, 2013 10:30
Show Gist options
  • Save nalabjp/5291309 to your computer and use it in GitHub Desktop.
Save nalabjp/5291309 to your computer and use it in GitHub Desktop.
#!/bin/sh
[ -f /opt/boxen ] && rm -fr /opt/boxen
sudo rm -fr /opt/boxen
sudo mkdir -p /opt/boxen
sudo chown $USER:admin /opt/boxen
git clone https://github.com/nalabjp/our-boxen /opt/boxen/repo
/opt/boxen/repo/script/boxen --no-fde
echo '# boxen' >> ~/.bash_profile
echo '[ -f /opt/boxen/env.sh ] && source /opt/boxen/env.sh' >> ~/.bash_profile
echo '[ -f /opt/boxen/nvm/nvm.sh ] && source /opt/boxen/nvm/nvm.sh' >> ~/.bash_profile
echo '# rbenv' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
echo '' >> ~/.bash_profile
source ~/.bash_profile
rbenv global 1.9.3-p392
echo 'Complete exec_boxen.sh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment