Files
tmux/hooks/session-create.sh
Kenneth Benzie (Benie) bb0bc511a6 Add <prefix>A binding to display-popup with agent.sh
Enables the use of AI agents (claude, gemini) in a persistent
display-popup, backed by a tmux session, via the <prefix>A binding.
2026-01-29 11:26:47 +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