summaryrefslogtreecommitdiff
path: root/.install/stowall
diff options
context:
space:
mode:
authorbh <qn+git@epicurus.dev>2026-03-23 21:13:41 +0800
committerbh <qn+git@epicurus.dev>2026-03-23 21:13:41 +0800
commitfd1067b9434b3a161cbd09e0cbffa23151c4c279 (patch)
tree21d99573b04605bc870812f8f397bc5149afb902 /.install/stowall
parent5bca208b0cd31d32cf09a5681dc0e320851cd28d (diff)
Fix location of install scripts
Diffstat (limited to '.install/stowall')
-rwxr-xr-x.install/stowall19
1 files changed, 19 insertions, 0 deletions
diff --git a/.install/stowall b/.install/stowall
new file mode 100755
index 0000000..ecb899f
--- /dev/null
+++ b/.install/stowall
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+DOTFILES_DIR="${1:-$HOME/Dotfiles}"
+
+cd "$DOTFILES_DIR"
+
+for pkg in *; do
+ [[ "$pkg" == "system" ]] && continue
+ [[ -d "$pkg" ]] || continue
+ stow -d "$DOTFILES_DIR" -t "$HOME" "$pkg"
+done
+
+if [[ -d system ]]; then
+ for pkg in system/*; do
+ [[ -d "$pkg" ]] || continue
+ sudo stow -d "$DOTFILES_DIR/system" -t / "$(basename "$pkg")"
+ done
+fi