Skip to content

Commit

Permalink
added function which install rbenv & ruby-build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomokazu Hirai committed Mar 29, 2013
1 parent abb1d5a commit 24cea9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
my $backupdir = "$homedir/dotbackup";
my $url_ohmyzsh = "git://github.com/robbyrussell/oh-my-zsh.git";
my $url_neobundle = "git://github.com/Shougo/neobundle.vim.git";
my $url_rbenv = "git://github.com/sstephenson/rbenv.git";
my $url_ruby_build = "git://github.com/sstephenson/ruby-build.git";
my $date = `date +%Y%m%d`;

# check command
Expand Down Expand Up @@ -89,3 +91,8 @@ sub link {
system ("mkdir ~/gitwork");
system ("git clone https://github.com/seebi/tmux-colors-solarized.git ~/gitwork/tmux-colors-solarized.git");
system ("git clone git://github.com/erikw/tmux-powerline.git ~/gitwork/tmux-powerline");

unless (-d "$homedir/.rbenv") {
system ("git clone $url_rbenv $homedir/.rbenv");
system ("git clone $url_ruby_build $homedir/.rbenv/plugins/ruby-build");
}

0 comments on commit 24cea9c

Please sign in to comment.