Skip to content

superbereza/claude-code-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

  1. Добавляем в ~/.claude/settings.json:
{
  ...
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "/Users/username/.claude/notify.sh"
          }
        ]
      }
    ],
    "Notification": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "/Users/username/.claude/notify-approval.sh"
          }
        ]
      }
    ],
    "Stop": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "osascript -e 'display notification \"Claude Code session completed\" with title \"Claude Code\" sound name \"Glass\"'"
          }
        ]
      }
    ]
  },
  ...
}
  1. Кладем файлы в /Users/username/.claude/

  2. Делаем их исполняемыми

chmod +x /Users/username/.claude/notify.sh
chmod +x /Users/username/.claude/notify-approval.sh

Не забыть: System Preferences —> Notifications —> iTerm —> Show previews: заменяем Default на Always

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages