Skip to content

Instantly share code, notes, and snippets.

@linyows
Last active January 3, 2016 17:59
Show Gist options
  • Save linyows/8499496 to your computer and use it in GitHub Desktop.
Save linyows/8499496 to your computer and use it in GitHub Desktop.
rbenv or plugins setup script for me
#!/bin/bash
brew update
brew install readline openssl curl-ca-bundle
git clone [email protected]:sstephenson/rbenv.git ~/.rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
git clone https://github.com/sstephenson/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems
# exclude default-gems file
echo default-gems >> ~/.rbenv/.git/info/exclude
# create default-gems file
cat << EOF > ~/.rbenv/default-gems
bundler
pry
awesome_print
EOF
git clone [email protected]:rkh/rbenv-update.git ~/.rbenv/plugins/rbenv-update
# for Japanese and SSL on Mac
if [ `uname` = 'Darwin' ]; then
export RUBY_CONFIGURE_OPTS="--with-readline-dir=`brew --prefix readline` --with-openssl-dir=`brew --prefix openssl`"
export SSL_CERT_FILE=/usr/local/opt/curl-ca-bundle/share/ca-bundle.crt
fi
@linyows
Copy link
Author

linyows commented Jan 19, 2014

Doooooooooooooooo ittttttttttttttttttttttttttttttttttttttttttttttttttttt!

curl -s -L http://git.io/qJWMuQ | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment