bin/homedir-setup

changeset 964
72a7a0ffbce8
parent 850
5ebdbddeafde
child 965
f1e5d30543ba
equal deleted inserted replaced
963:3f9185b6a5e3 964:72a7a0ffbce8
1 #!/bin/sh 1 #!/bin/bash
2 set -eu 2 set -euo pipefail
3 3
4 minimal=0 4 minimal=0
5 5
6 case ${1:-} in -m) minimal=1;; 6 case ${1:-} in -m) minimal=1;;
7 esac 7 esac
28 clone_or_pull 'https://github.com/tarjoilija/zgen.git' .zgen 28 clone_or_pull 'https://github.com/tarjoilija/zgen.git' .zgen
29 29
30 zsh -i -c 'zgen update' || : 30 zsh -i -c 'zgen update' || :
31 31
32 if [ "$minimal" -ne 1 ]; then 32 if [ "$minimal" -ne 1 ]; then
33 clone_or_pull 'https://github.com/tokuhirom/plenv.git' .plenv 33 clone_or_pull 'https://github.com/asdf-vm/asdf' .asdf
34 clone_or_pull 'https://github.com/skaji/perl-install' .plenv/plugins/perl-install 34 source .asdf/asdf.sh
35 35
36 clone_or_pull 'https://github.com/asdf-vm/asdf' .asdf 36 asdf plugin add perl || :
37 37 asdf plugin update --all
38 for PLUGIN in ruby nodejs erlang elixir; do
39 clone_or_pull "https://github.com/asdf-vm/asdf-$PLUGIN" .asdf/plugins/$PLUGIN
40 done
41 38
42 bin/setup-man || : 39 bin/setup-man || :
43 fi 40 fi
44 41
45 # Get rid of older stuff 42 # Get rid of older stuff
46 for OLD in .plenv/plugins/perl-build .rbenv .ndenv; do 43 for OLD in .plenv .rbenv .ndenv; do
47 if [ -e $OLD ]; then 44 if [ -e $OLD ]; then
48 echo "Pruning $OLD" >&2 45 echo "Pruning $OLD" >&2
49 rm -rf $OLD 46 rm -rf $OLD
50 fi 47 fi
51 done 48 done

mercurial