15 echo "$1:" |
15 echo "$1:" |
16 git -C "$1" pull --no-tags |
16 git -C "$1" pull --no-tags |
17 } |
17 } |
18 |
18 |
19 if ! [ -d .zgen ]; then |
19 if ! [ -d .zgen ]; then |
20 git clone 'https://github.com/tarjoilija/zgen.git' .zgen |
20 git clone --depth 1 'https://github.com/tarjoilija/zgen.git' .zgen |
21 else |
21 else |
22 pull .zgen |
22 pull .zgen |
23 fi |
23 fi |
24 |
24 |
25 if ! [ -d .plenv ]; then |
25 if ! [ -d .plenv ]; then |
26 git clone 'https://github.com/tokuhirom/plenv.git' .plenv |
26 git clone --depth 1 'https://github.com/tokuhirom/plenv.git' .plenv |
27 git clone 'https://github.com/tokuhirom/Perl-Build.git' .plenv/plugins/perl-build/ |
27 git clone --depth 1 'https://github.com/tokuhirom/Perl-Build.git' .plenv/plugins/perl-build/ |
28 else |
28 else |
29 pull .plenv |
29 pull .plenv |
30 pull .plenv/plugins/perl-build |
30 pull .plenv/plugins/perl-build |
31 fi |
31 fi |
32 |
32 |
33 if ! [ -d .asdf ]; then |
33 if ! [ -d .asdf ]; then |
34 git clone 'https://github.com/asdf-vm/asdf' .asdf |
34 git clone --depth 1 'https://github.com/asdf-vm/asdf' .asdf |
35 else |
35 else |
36 pull .asdf |
36 pull .asdf |
37 fi |
37 fi |
38 |
38 |
39 for LANG in ruby nodejs erlang elixir; do |
39 for LANG in ruby nodejs erlang elixir; do |
40 if ! [ -d .asdf/plugins/$LANG ]; then |
40 if ! [ -d .asdf/plugins/$LANG ]; then |
41 git clone "https://github.com/asdf-vm/asdf-$LANG" .asdf/plugins/$LANG |
41 git clone --depth 1 "https://github.com/asdf-vm/asdf-$LANG" .asdf/plugins/$LANG |
42 else |
42 else |
43 pull .asdf/plugins/$LANG |
43 pull .asdf/plugins/$LANG |
44 fi |
44 fi |
45 done |
45 done |
46 |
46 |