bin/homedir-setup

changeset 965
f1e5d30543ba
parent 964
72a7a0ffbce8
child 966
e1132c1cce12
equal deleted inserted replaced
964:72a7a0ffbce8 965:f1e5d30543ba
1 #!/bin/bash 1 #!/bin/bash
2 set -euo pipefail 2 set -euo pipefail
3
4 minimal=0
5
6 case ${1:-} in -m) minimal=1;;
7 esac
8 3
9 if [ ! -f .zshrc ]; then 4 if [ ! -f .zshrc ]; then
10 echo "Refusing to run without a .zshrc nearby" >&2 5 echo "Refusing to run without a .zshrc nearby" >&2
11 exit 1 6 exit 1
12 fi 7 fi
27 22
28 clone_or_pull 'https://github.com/tarjoilija/zgen.git' .zgen 23 clone_or_pull 'https://github.com/tarjoilija/zgen.git' .zgen
29 24
30 zsh -i -c 'zgen update' || : 25 zsh -i -c 'zgen update' || :
31 26
32 if [ "$minimal" -ne 1 ]; then 27 clone_or_pull 'https://github.com/asdf-vm/asdf' .asdf
33 clone_or_pull 'https://github.com/asdf-vm/asdf' .asdf 28 source .asdf/asdf.sh
34 source .asdf/asdf.sh
35 29
36 asdf plugin add perl || : 30 asdf plugin add perl || :
37 asdf plugin update --all 31 asdf plugin update --all
38 32
39 bin/setup-man || : 33 bin/setup-man || :
40 fi
41 34
42 # Get rid of older stuff 35 # Get rid of older stuff
43 for OLD in .plenv .rbenv .ndenv; do 36 for OLD in .plenv .rbenv .ndenv; do
44 if [ -e $OLD ]; then 37 if [ -e $OLD ]; then
45 echo "Pruning $OLD" >&2 38 echo "Pruning $OLD" >&2

mercurial