From 4ca85fa4fb4741135d0cd4ffbfb5b487dc25b360 Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Tue, 20 May 2025 09:31:28 -0700 Subject: Centralize management of dotfile script --- dots.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 dots.sh (limited to 'dots.sh') diff --git a/dots.sh b/dots.sh new file mode 100755 index 0000000..38b4923 --- /dev/null +++ b/dots.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# usage: ./dots.sh [update|clean]? + +OP="${1:-'update'}" + +STOW_OP="--no-folding" +if [ "$OP" = "clean" ]; then STOW_OP="-D"; fi + +find . -type d -mindepth 1 -maxdepth 1 -not -path '*/.*' \ + | sed "s/^\.\///" \ + | while read dir; do stow "$STOW_OP" "$dir"; done -- cgit v1.2.3-70-g09d2