mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 14:44:57 +08:00
claude code settings
This commit is contained in:
parent
fdef168fab
commit
497b52b448
2 changed files with 12 additions and 0 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -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
7
claude/settings.json
Normal 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')\""
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue