2026-02-19 23:07:59 +03:00

16 lines
428 B
Bash
Executable File

#!/bin/sh
set -eux
readonly SESSION=landing
readonly MAINW=landing
readonly WORKING_PROJECT="${HOME}"
if ! tmux has-session -t="${SESSION}"; then
tmux new-session -s "${SESSION}" -d -n "1" -c "${WORKING_PROJECT}" 'sh -c "tmux set-option remain-on-exit on; figlet -ct -f big Landing; trap : INT; while true; do sleep 3600; done"'
tmux rename-window -t="${SESSION}:1" "${MAINW}"
fi
tmux switch-client -t "${SESSION}"