aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/__claude-code-notify
diff options
context:
space:
mode:
Diffstat (limited to 'bin/__claude-code-notify')
-rwxr-xr-xbin/__claude-code-notify19
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/__claude-code-notify b/bin/__claude-code-notify
new file mode 100755
index 0000000..18e3ac5
--- /dev/null
+++ b/bin/__claude-code-notify
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+if [ "$(uname)" = "Darwin" ]; then
+ if [ "$1" = "Stop" ]; then
+ message="Task completed"
+ sound=Glass
+ else
+ message="$(jq '.message')"
+ sound=Funk
+ fi
+ osascript -e "display notification $message with title \"Claude Code\" sound name \"$sound\""
+else
+ if [ "$1" = "Stop" ]; then
+ message="Task completed"
+ else
+ message="$(jq '.message')"
+ fi
+ notify-send "Claude Code" "$message"
+fi