From 18212109ce5082767f542b74089398a4b506aae2 Mon Sep 17 00:00:00 2001 From: David Chen Date: Fri, 15 Aug 2025 09:24:18 -0500 Subject: [PATCH] update claude cc usage statusline cmd --- claude/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/claude/settings.json b/claude/settings.json index a519fa9..566876b 100644 --- a/claude/settings.json +++ b/claude/settings.json @@ -2,6 +2,6 @@ "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')\"" + "command": "printf '%s | %s | %s' \"$(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')\"" } } \ No newline at end of file