Last active
January 3, 2016 17:59
-
-
Save linyows/8499496 to your computer and use it in GitHub Desktop.
rbenv or plugins setup script for me
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doooooooooooooooo ittttttttttttttttttttttttttttttttttttttttttttttttttttt!
curl -s -L http://git.io/qJWMuQ | sh