.homedir-setup.rb

changeset 241
599f0e8cfb32
parent 240
18f78b36f003
equal deleted inserted replaced
240:18f78b36f003 241:599f0e8cfb32
51 end 51 end
52 end 52 end
53 53
54 54
55 def setup 55 def setup
56 # oh-my-zsh {{{ 56 # zgen {{{
57 # some custom zsh files are already in .oh-my-zsh.cust 57 if Dir.exists?('.zgen')
58 if Dir.exists?('.oh-my-zsh/.git') 58 puts "zgen already installed"
59 puts "oh-my-zsh already installed"
60 else 59 else
61 puts "Installing oh-my-zsh..." 60 puts "Installing zgen..."
62 61
63 do_cmds \ 62 do_cmds \
64 'git clone git://github.com/robbyrussell/oh-my-zsh.git .oh-my-zsh' 63 'git clone https://github.com/tarjoilija/zgen.git .zgen'
65 end 64 end
66 # }}} 65 # }}}
67 66
68 # plenv {{{ 67 # plenv {{{
69 if Dir.exists?('.plenv') 68 if Dir.exists?('.plenv')
70 puts "plenv already installed" 69 puts "plenv already installed"
71 else 70 else
72 puts "Installing plenv..." 71 puts "Installing plenv..."
73 72
74 do_cmds \ 73 do_cmds \
75 'git clone git://github.com/tokuhirom/plenv.git .plenv', 74 'git clone https://github.com/tokuhirom/plenv.git .plenv',
76 'git clone git://github.com/tokuhirom/Perl-Build.git .plenv/plugins/perl-build/' 75 'git clone https://github.com/tokuhirom/Perl-Build.git .plenv/plugins/perl-build/'
77 end 76 end
78 # }}} 77 # }}}
79 78
80 # rbenv {{{ 79 # rbenv {{{
81 if Dir.exists?('.rbenv') 80 if Dir.exists?('.rbenv')
101 end 100 end
102 # }}} 101 # }}}
103 end 102 end
104 103
105 def update 104 def update
106 [ 105 [ '.zgen',
107 '.oh-my-zsh',
108 '.plenv', 106 '.plenv',
109 '.plenv/plugins/perl-build', 107 '.plenv/plugins/perl-build',
110 '.rbenv', 108 '.rbenv',
111 '.rbenv/plugins/ruby-build', 109 '.rbenv/plugins/ruby-build',
112 '.ndenv', 110 '.ndenv',

mercurial