Moony (@Alpharion) 在 Mac下为 Claude Code 配置带图标的通知 中发帖
Claude Code 通知配置
效果
[image01]
前置要求
macOS 系统
已安装 Claude 桌面应用 (Claude.app)
terminal-notifier
安装步骤
1. 安装 terminal-notifier
brew install terminal-notifier
2. 复制通知脚本
创建目录
mkdir -p ~/.claude/hooks
复制下面的notify.sh脚本到hooks目录下
#!/bin/bash
# Claude Code 用户操作通知脚本
# 发送带自定义图标的 macOS 系统通知
MESSAGE="${1:-Claude Code 需要您的操作}"
# 使用自定义应用的 bundle ID 来发送通知
# 这样左侧会显示 ClaudeNotifier.app 的图标
terminal-notifie...