Last active
January 4, 2016 18:59
-
-
Save masaki/8663952 to your computer and use it in GitHub Desktop.
setup languages
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 | |
[ -e "$HOME/.plenv" ] && rm -rf $HOME/.plenv | |
git clone [email protected]: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 [email protected]:tokuhirom/Perl-Build.git $HOME/.plenv/plugins/perl-build |
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 | |
[ -e "$HOME/.rbenv" ] && rm -rf $HOME/.rbenv | |
git clone [email protected]: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 [email protected]:sstephenson/ruby-build.git $HOME/.rbenv/plugins/ruby-build | |
git clone [email protected]:sstephenson/rbenv-gem-rehash.git $HOME/.rbenv/plugins/rbenv-gem-rehash | |
git clone [email protected]: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