Files
dotwryn/config/local/altaria/bin/apps

13 lines
398 B
Plaintext
Raw Normal View History

2022-02-06 00:15:14 -07:00
#!/bin/zsh
tmux new -d -s apps -n 'foreman' 'htop' \; \
2024-04-08 19:11:39 -06:00
split-window -d -t apps:foreman "clear; echo 'Keeping apps fresh...'; while true; do sleep 30; done" \
2>/dev/null
2025-08-09 09:26:07 -06:00
for APP in $(find "${0:a:h}" -name apps.\* | sed 's/.*apps\.//')
do
2024-04-08 19:11:39 -06:00
echo "looking for $APP"
tmux list-windows -t apps: | awk '{print $2;}' | grep -q $APP \
2025-08-09 09:26:07 -06:00
|| tmux new-window -dn $APP -t apps: "${0:a:h}/apps.$APP"
done