config swap & a couple of bugs

This commit is contained in:
2025-08-09 09:26:07 -06:00
parent 882ea6ebc1
commit 0efb33c947
24 changed files with 158 additions and 137 deletions

View File

@@ -4,9 +4,9 @@ tmux new -d -s apps -n 'foreman' 'htop' \; \
split-window -d -t apps:foreman "clear; echo 'Keeping apps fresh...'; while true; do sleep 30; done" \
2>/dev/null
for APP in $(find "${0:a:h}" -name apps.\*)
for APP in $(find "${0:a:h}" -name apps.\* | sed 's/.*apps\.//')
do
echo "looking for $APP"
tmux list-windows -t apps: | awk '{print $2;}' | grep -q $APP \
|| tmux new-window -dn $APP -t apps: "${0:a:h}/$APP"
|| tmux new-window -dn $APP -t apps: "${0:a:h}/apps.$APP"
done