aboutsummaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/session-title.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/hooks/session-title.sh b/hooks/session-title.sh
index 8a12f61..87fa4ad 100755
--- a/hooks/session-title.sh
+++ b/hooks/session-title.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-# SessionStart(startup|resume) hook: title the session "<host> <project>"
-# (e.g. "ratio rulesets", "velox work") so remote sessions are identifiable
+# SessionStart(startup|resume) hook: title the session "<host>-<project>"
+# (e.g. "ratio-rulesets", "velox-work") so remote sessions are identifiable
# in the claude.ai/code and mobile session lists instead of auto-generated
# names.
#
@@ -38,4 +38,4 @@ fi
# uname -n, not hostname: Arch doesn't ship hostname by default (inetutils).
host=$(uname -n)
-python3 -c 'import json,sys; print(json.dumps({"hookSpecificOutput":{"hookEventName":"SessionStart","sessionTitle":sys.argv[1]}}))' "$host $project"
+python3 -c 'import json,sys; print(json.dumps({"hookSpecificOutput":{"hookEventName":"SessionStart","sessionTitle":sys.argv[1]}}))' "$host-$project"