Skip to content

Instantly share code, notes, and snippets.

@masaki
Last active Jan 4, 2016
Embed
What would you like to do?
setup languages
#!/bin/bash
[ -e "$HOME/.plenv" ] && rm -rf $HOME/.plenv
git clone git@github.com:tokuhirom/plenv.git $HOME/.plenv
echo '[ -d "$HOME/.plenv/bin" ] && [ `echo $PATH | grep "$HOME/.plenv/bin"` ] || export PATH="$HOME/.plenv/bin:$PATH"' >> $HOME/.zshrc
echo 'if which plenv > /dev/null; then eval "$(plenv init -)"; fi' >>$HOME/.zshrc
mkdir -p $HOME/.plenv/plugins
git clone git@github.com:tokuhirom/Perl-Build.git $HOME/.plenv/plugins/perl-build
#!/bin/bash
[ -e "$HOME/.rbenv" ] && rm -rf $HOME/.rbenv
git clone git@github.com:sstephenson/rbenv.git $HOME/.rbenv
echo '[ -d "$HOME/.rbenv/bin" ] && [ `echo $PATH | grep "$HOME/.rbenv/bin"` ] || export PATH="$HOME/.rbenv/bin:$PATH"' >> $HOME/.zshrc
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> $HOME/.zshrc
mkdir -p $HOME/.rbenv/plugins
git clone git@github.com:sstephenson/ruby-build.git $HOME/.rbenv/plugins/ruby-build
git clone git@github.com:sstephenson/rbenv-gem-rehash.git $HOME/.rbenv/plugins/rbenv-gem-rehash
git clone git@github.com:tpope/rbenv-aliases.git $HOME/.rbenv/plugins/rbenv-aliases
rbenv alias --auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment