bin/homedir-setup

Mon, 20 Jan 2025 01:01:48 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 20 Jan 2025 01:01:48 -0600
changeset 1180
308dce5084af
parent 999
f7bbd67b1aac
child 1181
7eef65340481
permissions
-rwxr-xr-x

start switching to mise-en-place

#!/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

[ -d .asdf/plugins/perl ] ||
    asdf plugin add perl

asdf plugin update --all

if ! [[ "$(uname -m)" =~ "i.86" ]]; then
  curl -sS 'https://mise.run/' | sh
fi

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