Skip to content

Instantly share code, notes, and snippets.

@posva
Created December 31, 2025 23:11
Show Gist options
  • Select an option

  • Save posva/21ddab24ed68684b130ffa58c97da546 to your computer and use it in GitHub Desktop.

Select an option

Save posva/21ddab24ed68684b130ffa58c97da546 to your computer and use it in GitHub Desktop.
Auto tmux title claude code ~/.claude/settings.json
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "tmux rename-window -t $(tmux display-message -p -t \"$TMUX_PANE\" '#I') \"🤖 $(basename $CLAUDE_PROJECT_DIR)\""
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "tmux rename-window -t $(tmux display-message -p -t \"$TMUX_PANE\" '#I') \"⚡ $(basename $CLAUDE_PROJECT_DIR)\""
}
]
}
],
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "tmux rename-window -t $(tmux display-message -p -t \"$TMUX_PANE\" '#I') \"💬 $(basename $CLAUDE_PROJECT_DIR)\""
}
]
}
],
"PermissionRequest": [
{
"hooks": [
{
"type": "command",
"command": "tmux rename-window -t $(tmux display-message -p -t \"$TMUX_PANE\" '#I') \"💬 $(basename $CLAUDE_PROJECT_DIR)\""
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "tmux rename-window -t $(tmux display-message -p -t \"$TMUX_PANE\" '#I') \"🤖 $(basename $CLAUDE_PROJECT_DIR)\""
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "tmux set-window-option -t $(tmux display-message -p -t \"$TMUX_PANE\" '#I') automatic-rename on"
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment