Mon, 09 Oct 2023 18:47:36 -0500
nvim: switch to preferring last symver tag / add exceptions
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 | ||
849
9a6cb845e239
Switch to perl-install and simplify clone or pull
Meredith Howard <mhoward@roomag.org>
parents:
760
diff
changeset
|
12 | 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
|
13 | |
9a6cb845e239
Switch to perl-install and simplify clone or pull
Meredith Howard <mhoward@roomag.org>
parents:
760
diff
changeset
|
14 | zsh -i -c 'zgen update' || : |
245 | 15 | |
965
f1e5d30543ba
forget the minimal setup mode
Meredith Howard <mhoward@roomag.org>
parents:
964
diff
changeset
|
16 | clone_or_pull 'https://github.com/asdf-vm/asdf' .asdf |
f1e5d30543ba
forget the minimal setup mode
Meredith Howard <mhoward@roomag.org>
parents:
964
diff
changeset
|
17 | source .asdf/asdf.sh |
245 | 18 | |
999
f7bbd67b1aac
switch off of asdf-perl fork
Meredith Howard <mhoward@roomag.org>
parents:
971
diff
changeset
|
19 | [ -d .asdf/plugins/perl ] || |
f7bbd67b1aac
switch off of asdf-perl fork
Meredith Howard <mhoward@roomag.org>
parents:
971
diff
changeset
|
20 | asdf plugin add perl |
f7bbd67b1aac
switch off of asdf-perl fork
Meredith Howard <mhoward@roomag.org>
parents:
971
diff
changeset
|
21 | |
965
f1e5d30543ba
forget the minimal setup mode
Meredith Howard <mhoward@roomag.org>
parents:
964
diff
changeset
|
22 | asdf plugin update --all |
756 | 23 | |
965
f1e5d30543ba
forget the minimal setup mode
Meredith Howard <mhoward@roomag.org>
parents:
964
diff
changeset
|
24 | bin/setup-man || : |
381
b09db2db7f84
use ruby and nodejs plugins for asdf
Meredith Howard <mhoward@roomag.org>
parents:
328
diff
changeset
|
25 | |
459
efa21f0b1dca
Remove rbenv & ndenv transition stuff
Meredith Howard <mhoward@roomag.org>
parents:
383
diff
changeset
|
26 | # Get rid of older stuff |
964 | 27 | for OLD in .plenv .rbenv .ndenv; do |
849
9a6cb845e239
Switch to perl-install and simplify clone or pull
Meredith Howard <mhoward@roomag.org>
parents:
760
diff
changeset
|
28 | if [ -e $OLD ]; then |
967 | 29 | warn "Pruning $OLD" |
849
9a6cb845e239
Switch to perl-install and simplify clone or pull
Meredith Howard <mhoward@roomag.org>
parents:
760
diff
changeset
|
30 | rm -rf $OLD |
9a6cb845e239
Switch to perl-install and simplify clone or pull
Meredith Howard <mhoward@roomag.org>
parents:
760
diff
changeset
|
31 | fi |
9a6cb845e239
Switch to perl-install and simplify clone or pull
Meredith Howard <mhoward@roomag.org>
parents:
760
diff
changeset
|
32 | done |