Fri, 18 Mar 2016 01:20:22 +0000
Disable mouse copy-mode
245 | 1 | #!/bin/sh |
2 | set -eu | |
3 | ||
4 | if ! git --version >/dev/null; then | |
5 | echo "Please install git!" | |
6 | exit 1 | |
7 | fi | |
8 | ||
9 | pull () { | |
10 | echo "$1:" | |
11 | git -C $1 pull --no-tags | |
12 | } | |
13 | ||
14 | if ! [ -d .zgen ]; then | |
15 | git clone https://github.com/tarjoilija/zgen.git .zgen | |
16 | else | |
17 | pull .zgen | |
18 | fi | |
19 | ||
20 | if ! [ -d .plenv ]; then | |
21 | git clone https://github.com/tokuhirom/plenv.git .plenv | |
22 | git clone https://github.com/tokuhirom/Perl-Build.git .plenv/plugins/perl-build/ | |
23 | else | |
24 | pull .plenv | |
25 | pull .plenv/plugins/perl-build | |
26 | fi | |
27 | ||
28 | if ! [ -d .rbenv ]; then | |
29 | git clone https://github.com/sstephenson/rbenv.git .rbenv | |
30 | git clone https://github.com/sstephenson/ruby-build.git .rbenv/plugins/ruby-build/ | |
31 | else | |
32 | pull .rbenv | |
33 | pull .rbenv/plugins/ruby-build | |
34 | fi | |
35 | ||
36 | if ! [ -d .ndenv ]; then | |
37 | git clone https://github.com/riywo/ndenv.git .ndenv | |
38 | git clone https://github.com/riywo/node-build.git .ndenv/plugins/node-build | |
39 | else | |
40 | pull .ndenv | |
41 | pull .ndenv/plugins/node-build | |
42 | fi | |
43 |