diff --git a/utils/home-manager/claude-code/statusline-command.sh b/utils/home-manager/claude-code/statusline-command.sh index 6240e86..73f0412 100644 --- a/utils/home-manager/claude-code/statusline-command.sh +++ b/utils/home-manager/claude-code/statusline-command.sh @@ -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"