13 lines
322 B
Plaintext
13 lines
322 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
case "$OSTYPE" in
|
||
|
darwin*)
|
||
|
brew install rbenv
|
||
|
;;
|
||
|
linux*)
|
||
|
git clone https://github.com/rbenv/rbenv.git $HOME/.rbenv
|
||
|
cd $HOME/.rbenv && src/configure && make -C src
|
||
|
git clone https://github.com/rbenv/ruby-build.git $HOME/.rbenv/plugins/ruby-build
|
||
|
;;
|
||
|
esac
|