.homedir-setup.rb

changeset 213
859dd4b440d8
parent 185
4e227517a5cd
child 240
18f78b36f003
equal deleted inserted replaced
212:36642e1d867a 213:859dd4b440d8
97 'git clone https://github.com/sstephenson/ruby-build.git .rbenv/plugins/ruby-build/' 97 'git clone https://github.com/sstephenson/ruby-build.git .rbenv/plugins/ruby-build/'
98 98
99 end 99 end
100 # }}} 100 # }}}
101 101
102
103 # ndenv {{{
104 if Dir.exists?('.ndenv')
105 puts "ndenv already installed"
106 else
107 puts "Installing ndenv..."
108
109 do_cmds \
110 'git clone https://github.com/riywo/ndenv.git .ndenv',
111 'git clone https://github.com/riywo/node-build.git .ndenv/plugins/node-build'
112
113 end
114 # }}}
115
116
102 end 117 end
103 118
104 def update 119 def update
105 120
106 [ 121 [
107 '.oh-my-zsh', 122 '.oh-my-zsh',
108 '.plenv', 123 '.plenv',
109 '.plenv/plugins/perl-build', 124 '.plenv/plugins/perl-build',
110 '.rbenv', 125 '.rbenv',
111 '.rbenv/plugins/ruby-build', 126 '.rbenv/plugins/ruby-build',
127 '.ndenv',
128 '.ndenv/plugins/node-build',
112 ].each do |dir| 129 ].each do |dir|
113 do_cmds \ 130 do_cmds \
114 "cd ~/#{dir} && git pull origin master" 131 "cd ~/#{dir} && git pull origin master"
115 end 132 end
116 133

mercurial