Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:41:06 +08:00
commit 07a6ddd5db
4 changed files with 163 additions and 0 deletions

104
hooks/hooks.json Normal file
View File

@@ -0,0 +1,104 @@
{
"description": "Update iTerm2 window title with Claude Code status indicators",
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/update-iterm-title-python.sh \"✻\"",
"timeout": 500
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/update-iterm-title-python.sh \"✓\"",
"timeout": 500
}
]
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/persist-iterm-tab.sh",
"timeout": 500
},
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/update-iterm-title-python.sh \"○\"",
"timeout": 500
},
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/start-tab-monitor.sh",
"timeout": 500
}
]
}
],
"Notification": [
{
"matcher": "permission_prompt|elicitation_dialog",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/update-iterm-title-python.sh \"?\"",
"timeout": 500
}
]
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/update-iterm-title-python.sh \"⌫\"",
"timeout": 500
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/update-for-tool-hook.sh",
"timeout": 500
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/update-iterm-title-python.sh \"✻\"",
"timeout": 500
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/stop-tab-monitor.sh",
"timeout": 500
}
]
}
]
}
}