bin/homedir-setup

Thu, 23 Jan 2025 22:29:09 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 23 Jan 2025 22:29:09 -0600
changeset 1183
c5735f6254b1
parent 1182
222bbbc217cc
permissions
-rwxr-xr-x

Remove asdf

#!/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' || :
zsh -i -c 'true'


if [ -x .local/bin/mise ]; then
  mise self-update -y
else
  curl -sS 'https://mise.run/' | sh
fi


bin/setup-man || :


if [ -d .asdf ]; then
  source .asdf/asdf.sh
  warn "Pruning asdf installs"
  asdf list
  rm -rf .asdf
fi

mercurial