bin/homedir-setup

Sat, 26 Mar 2022 20:03:29 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 26 Mar 2022 20:03:29 -0500
changeset 986
b06e863e3175
parent 971
7f391ae6b12b
child 999
f7bbd67b1aac
permissions
-rwxr-xr-x

no typeprof

#!/bin/bash
set -euo pipefail

source .lib/sh/util.sh

[ -f .zshrc ] ||
  die "Refusing to run without a .zshrc nearby"

git --version >/dev/null ||
  die "Please install git!"

clone_or_pull 'https://github.com/tarjoilija/zgen.git' .zgen

zsh -i -c 'zgen update' || :

clone_or_pull 'https://github.com/asdf-vm/asdf' .asdf
source .asdf/asdf.sh

asdf plugin add perl 'https://github.com/merrilymeredith/asdf-perl.git' || :
asdf plugin update --all

bin/setup-man || :

# Get rid of older stuff
for OLD in .plenv .rbenv .ndenv; do
  if [ -e $OLD ]; then
    warn "Pruning $OLD"
    rm -rf $OLD
  fi
done

mercurial