From 8464813df475dcbfa0396ede083182788c4a82f1 Mon Sep 17 00:00:00 2001 From: Jonas H Date: Fri, 27 Feb 2026 22:47:34 +0100 Subject: [PATCH] add install.sh --- install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..2d2091c --- /dev/null +++ b/install.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# install.sh: Stow all packages in this dotfiles repo. +# Run this after cloning on a new machine. + +set -euo pipefail + +DOTFILES_DIR="$(cd "$(dirname "$0")" && pwd)" + +for PACKAGE in "$DOTFILES_DIR"/*/; do + PACKAGE="$(basename "$PACKAGE")" + echo "Stowing: $PACKAGE" + stow --dir="$DOTFILES_DIR" --target="$HOME" --restow "$PACKAGE" +done + +echo "Done."