We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b912dfc commit b7de434Copy full SHA for b7de434
3 files changed
.claude/hooks/session-start-web.sh
@@ -0,0 +1,11 @@
1
+#!/bin/bash
2
+set -euo pipefail
3
+
4
+# Install `gh`
5
+if ! command -v gh &> /dev/null; then
6
+ apt-get update -qq
7
+ apt-get install -y -qq gh
8
+fi
9
10
+# Install clippy and rustfmt for the active toolchain.
11
+rustup component add clippy rustfmt
.claude/hooks/session-start.sh
@@ -0,0 +1,7 @@
+# Dispatch to web hook if running remotely
+if [ "${CLAUDE_CODE_REMOTE:-}" = "true" ]; then
+ exec "$(dirname "$0")/session-start-web.sh"
.claude/settings.json
@@ -0,0 +1,15 @@
+{
+ "hooks": {
+ "SessionStart": [
+ {
+ "matcher": "startup",
+ "hooks": [
+ "type": "command",
+ "command": ".claude/hooks/session-start.sh"
+ }
+ ]
12
13
14
15
+}
0 commit comments