Files
tmux/hooks/session-create.sh
2026-01-23 19:03:49 +00:00

10 lines
252 B
Bash
Executable File

#!/usr/bin/env bash
session_name=$(tmux display-message -p '#S')
session_layout=~/.local/share/tmux/layouts/session-$session_name
if [ -f $session_layout ]; then
$session_layout
elif [ "$session_name" != "agent" ]; then
tmux rename-window home
fi