bin/homedir-setup

changeset 1183
c5735f6254b1
parent 1182
222bbbc217cc
equal deleted inserted replaced
1182:222bbbc217cc 1183:c5735f6254b1
7 die "Refusing to run without a .zshrc nearby" 7 die "Refusing to run without a .zshrc nearby"
8 8
9 git --version >/dev/null || 9 git --version >/dev/null ||
10 die "Please install git!" 10 die "Please install git!"
11 11
12
12 clone_or_pull 'https://github.com/tarjoilija/zgen.git' .zgen 13 clone_or_pull 'https://github.com/tarjoilija/zgen.git' .zgen
13 14
14 zsh -i -c 'zgen update' || : 15 zsh -i -c 'zgen update' || :
16 zsh -i -c 'true'
15 17
16 clone_or_pull 'https://github.com/asdf-vm/asdf' .asdf
17 source .asdf/asdf.sh
18 18
19 [ -d .asdf/plugins/perl ] || 19 if [ -x .local/bin/mise ]; then
20 asdf plugin add perl 20 mise self-update -y
21 21 else
22 asdf plugin update --all
23
24 if [[ "$MACHTYPE" != "i686" ]]; then
25 curl -sS 'https://mise.run/' | sh 22 curl -sS 'https://mise.run/' | sh
26 fi 23 fi
27 24
25
28 bin/setup-man || : 26 bin/setup-man || :
29 27
30 # Get rid of older stuff 28
31 for OLD in .plenv .rbenv .ndenv; do 29 if [ -d .asdf ]; then
32 if [ -e $OLD ]; then 30 source .asdf/asdf.sh
33 warn "Pruning $OLD" 31 warn "Pruning asdf installs"
34 rm -rf $OLD 32 asdf list
35 fi 33 rm -rf .asdf
36 done 34 fi

mercurial