36 lines
1.2 KiB
JSON
36 lines
1.2 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(git:*)",
|
|
"Bash(mkdir:*)",
|
|
"Bash(find:*)",
|
|
"Bash(curl:*)",
|
|
"Bash(tea:*)",
|
|
"WebSearch"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Bash(git commit:*)",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "~/.claude/scripts/pre-commit-checks.sh",
|
|
"statusMessage": "Running pre-commit checks..."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"statusLine": {
|
|
"type": "command",
|
|
"command": "input=$(cat); current_dir=$(echo \"$input\" | jq -r '.workspace.current_dir'); model=$(echo \"$input\" | jq -r '.model.display_name'); style=$(echo \"$input\" | jq -r '.output_style.name'); git_info=\"\"; if [ -d \"$current_dir/.git\" ]; then cd \"$current_dir\" && branch=$(git branch --show-current 2>/dev/null) && status=$(git status --porcelain 2>/dev/null | wc -l | tr -d ' ') && git_info=\" [$branch$([ \"$status\" != \"0\" ] && echo \"*\")]\"; fi; printf \"\\033[2m$(whoami)@$(hostname -s) $(basename \"$current_dir\")$git_info | $model ($style)\\033[0m\"",
|
|
"padding": 0
|
|
},
|
|
"enabledPlugins": {
|
|
"gopls-lsp@claude-plugins-official": true
|
|
},
|
|
"model": "opus"
|
|
}
|