major rework

This commit is contained in:
2025-07-27 11:50:38 -05:00
parent 1c50eb61f5
commit 2b7faac58c
19 changed files with 947 additions and 796 deletions

12
shfmt-watcher.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
base="$(dirname "$(readlink -f "$0")")"
inotifywait -m -r \
-e close_write \
-e moved_to \
--format '%w%f' "$base" | while read -r file; do
if [[ -f $file && $file =~ .sh ]]; then
shfmt --write --simplify "$file"
fi
done