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