claude code settings

This commit is contained in:
David Chen 2025-08-14 15:15:34 -05:00
parent fdef168fab
commit 497b52b448
2 changed files with 12 additions and 0 deletions

5
.gitignore vendored
View file

@ -54,3 +54,8 @@ jesseduffield/lazynpm/state.yml
ranger/__pycache__/commands.cpython-39.opt-1.pyc
yazi/bookmark
# Claude Code configuration
!/claude/
/claude/*
!/claude/settings.json

7
claude/settings.json Normal file
View file

@ -0,0 +1,7 @@
{
"model": "opusplan",
"statusLine": {
"type": "command",
"command": "printf '%s | %s | %s' \"$(bun x ccusage statusline | tr -d '\\n')\" \"$(pwd | sed \"s|$HOME|~|\" | sed 's|.*/\\([^/]*/[^/]*\\)$|\\1|')\" \"$(git status --porcelain 2>/dev/null | awk 'BEGIN{staged=0; modified=0; untracked=0} /^M/{staged++} /^.M/{modified++} /^\\?\\?/{untracked++} END{if(staged+modified+untracked>0) printf \"git: %s%s%s\", (staged>0?staged\"s\":\"\"),(modified>0?modified\"m\":\"\"),(untracked>0?untracked\"u\":\"\"); else printf \"git: clean\"}' || printf 'not a git repo')\""
}
}