From 3ec490e093321cab89de2475adbf87ead8f60c03 Mon Sep 17 00:00:00 2001 From: Seth Etter Date: Wed, 16 Sep 2026 20:00:56 -0500 Subject: [PATCH] set up a justfile for common commands --- README.md | 3 +++ justfile | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 justfile diff --git a/README.md b/README.md index 1124e32..0d36f6c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ Config files for my personal dev setup on macOS and Debian. +Common operations are in the [justfile](justfile) (`just --list`): +syncing, brew bundle, and the Debian bootstrap/playbooks. + ## Setup ### Clone this repo diff --git a/justfile b/justfile new file mode 100644 index 0000000..334efb7 --- /dev/null +++ b/justfile @@ -0,0 +1,27 @@ +default: + @just --list + +# Relink config symlinks, install TPM, sync agent settings +sync: + ./sync.sh + +# Install Homebrew packages from Brewfile (macOS only) +brew: + #!/usr/bin/env bash + if [ "$(uname)" != "Darwin" ]; then + echo "macOS only" >&2 + exit 1 + fi + brew bundle --file "$HOME/dotfiles/Brewfile" + +# Bootstrap a fresh Debian machine (installs ansible, runs setup playbook) +deb-bootstrap: + ./debian/bootstrap.sh + +# Run the Debian setup playbook +deb-setup: + ansible-playbook debian/ansible/setup.yml --ask-become-pass + +# Run the Debian update playbook +deb-update: + ansible-playbook debian/ansible/update.yml --ask-become-pass -- 2.51.2