Skip to content

Commit 8077d0c

Browse files
committed
Add CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR to claude env
Sometimes Claude decides to change the working directory and hooks stop working. Setting this variable restores the directory after each hook.
1 parent 076acab commit 8077d0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.claude/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"env": {
3+
"CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR": "true",
4+
},
25
"permissions": {
36
"allow": [
47
"Bash(mkdir:*)",
@@ -105,4 +108,4 @@
105108
}
106109
]
107110
}
108-
}
111+
}

0 commit comments

Comments
 (0)