Files
agent-skills/hooks/tmux-reset.sh
T
naps62 7cb03f8796 feat: ship the remaining hooks and aoe-register-remote
settings.json references git-autoupdate, tmux-attention, tmux-reset and
scripts/aoe-register-remote.py, but they only existed as untracked files
on one machine, so hooks failed everywhere else.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-17 08:56:44 +00:00

12 lines
413 B
Bash
Executable File

#!/bin/bash
# Reset tmux window style when Claude Code resumes working
# Called by Claude Code's PreToolUse hook
[ -z "$TMUX" ] && exit 0
TARGET=$(tmux display-message -p '#{session_name}:#{window_index}')
# Reset to normal theme colors
tmux set-window-option -t "$TARGET" window-status-current-style "fg=#7aa2f7,bg=#24283b,bold"
tmux set-window-option -t "$TARGET" window-status-style "fg=#565f89,bg=#1a1b26"