@@ -16,13 +16,13 @@ function synu --description "Universal agent wrapper with Synthetic API quota tr
set -l percent_used (math -s0 "$requests * 100 / $limit")
printf "Usage: "
if test $percent_used -lt 33
- set_color green
+ set_color -b green black
else if test $percent_used -lt 67
- set_color yellow
+ set_color -b yellow black
else
- set_color red
+ set_color -b red black
end
- printf "%s%%" $percent_used
+ printf " %s%% " $percent_used
set_color normal
printf " (%s/%s remaining)\n" $remaining $limit
return 0
@@ -168,13 +168,13 @@ function synu --description "Universal agent wrapper with Synthetic API quota tr
# Determine color based on usage percentage
# Green: <33%, Yellow: 33-66%, Red: >66%
if test $percent_used -lt 33
- set_color green
+ set_color -b green black
else if test $percent_used -lt 67
- set_color yellow
+ set_color -b yellow black
else
- set_color red
+ set_color -b red black
end
- printf "%s%%" $percent_used
+ printf " %s%% " $percent_used
set_color normal
printf " (%s/%s remaining)\n" $remaining $limit