fix: claude-code statusline command
This commit is contained in:
parent
95e0c05db7
commit
d127dbd708
1 changed files with 9 additions and 9 deletions
|
|
@ -1,13 +1,13 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# ANSI color codes
|
# ANSI color codes (actual escape bytes, not printf-interpreted strings)
|
||||||
GREEN='\033[32m'
|
GREEN=$'\033[32m'
|
||||||
YELLOW='\033[33m'
|
YELLOW=$'\033[33m'
|
||||||
RED='\033[31m'
|
RED=$'\033[31m'
|
||||||
CYAN='\033[36m'
|
CYAN=$'\033[36m'
|
||||||
GRAY='\033[90m'
|
GRAY=$'\033[90m'
|
||||||
MAGENTA='\033[35m'
|
MAGENTA=$'\033[35m'
|
||||||
RESET='\033[0m'
|
RESET=$'\033[0m'
|
||||||
|
|
||||||
input=$(cat)
|
input=$(cat)
|
||||||
usage=$(echo "$input" | jq '.context_window.current_usage')
|
usage=$(echo "$input" | jq '.context_window.current_usage')
|
||||||
|
|
@ -91,4 +91,4 @@ if [ -n "$project" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "%b" "$output"
|
printf '%s' "$output"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue