Thu, 23 Jan 2025 22:29:09 -0600
Remove asdf
964 | 1 | #!/bin/bash |
2 | set -euo pipefail | |
245 | 3 | |
969 | 4 | source .lib/sh/util.sh |
245 | 5 | |
967 | 6 | [ -f .zshrc ] || |
7 | die "Refusing to run without a .zshrc nearby" | |
8 | ||
9 | git --version >/dev/null || | |
10 | die "Please install git!" | |
11 | ||
1183 | 12 | |
849
9a6cb845e239
Switch to perl-install and simplify clone or pull
Meredith Howard <mhoward@roomag.org>
parents:
760
diff
changeset
|
13 | clone_or_pull 'https://github.com/tarjoilija/zgen.git' .zgen |
9a6cb845e239
Switch to perl-install and simplify clone or pull
Meredith Howard <mhoward@roomag.org>
parents:
760
diff
changeset
|
14 | |
9a6cb845e239
Switch to perl-install and simplify clone or pull
Meredith Howard <mhoward@roomag.org>
parents:
760
diff
changeset
|
15 | zsh -i -c 'zgen update' || : |
1183 | 16 | zsh -i -c 'true' |
245 | 17 | |
18 | ||
1183 | 19 | if [ -x .local/bin/mise ]; then |
20 | mise self-update -y | |
21 | else | |
1180
308dce5084af
start switching to mise-en-place
Meredith Howard <mhoward@roomag.org>
parents:
999
diff
changeset
|
22 | curl -sS 'https://mise.run/' | sh |
308dce5084af
start switching to mise-en-place
Meredith Howard <mhoward@roomag.org>
parents:
999
diff
changeset
|
23 | fi |
308dce5084af
start switching to mise-en-place
Meredith Howard <mhoward@roomag.org>
parents:
999
diff
changeset
|
24 | |
1183 | 25 | |
965
f1e5d30543ba
forget the minimal setup mode
Meredith Howard <mhoward@roomag.org>
parents:
964
diff
changeset
|
26 | bin/setup-man || : |
381
b09db2db7f84
use ruby and nodejs plugins for asdf
Meredith Howard <mhoward@roomag.org>
parents:
328
diff
changeset
|
27 | |
1183 | 28 | |
29 | if [ -d .asdf ]; then | |
30 | source .asdf/asdf.sh | |
31 | warn "Pruning asdf installs" | |
32 | asdf list | |
33 | rm -rf .asdf | |
34 | fi |