fix: claude-code statusline command

This commit is contained in:
Dominik Polakovics Polakovics 2026-02-27 12:33:44 +01:00
parent 95e0c05db7
commit d127dbd708

View file

@ -1,13 +1,13 @@
#!/usr/bin/env bash
# ANSI color codes
GREEN='\033[32m'
YELLOW='\033[33m'
RED='\033[31m'
CYAN='\033[36m'
GRAY='\033[90m'
MAGENTA='\033[35m'
RESET='\033[0m'
# ANSI color codes (actual escape bytes, not printf-interpreted strings)
GREEN=$'\033[32m'
YELLOW=$'\033[33m'
RED=$'\033[31m'
CYAN=$'\033[36m'
GRAY=$'\033[90m'
MAGENTA=$'\033[35m'
RESET=$'\033[0m'
input=$(cat)
usage=$(echo "$input" | jq '.context_window.current_usage')
@ -91,4 +91,4 @@ if [ -n "$project" ]; then
fi
fi
printf "%b" "$output"
printf '%s' "$output"