Skip to content

Commit 3926c76

Browse files
committed
statusline: drop the % number after each usage bar (bar-only, number-free)
1 parent d0ce740 commit 3926c76

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

step-4/step-4-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ usage_seg() {
10741074
local dim=$'\033[38;5;240m' reset=$'\033[0m'
10751075
while [ $i -lt $filled ]; do fill="${fill}█"; i=$((i+1)); done
10761076
i=0; while [ $i -lt $empty ]; do emp="${emp}█"; i=$((i+1)); done
1077-
printf '%s %s%s%s%s%s %s%%' "$label" "$c" "$fill" "$dim" "$emp" "$reset" "$p"
1077+
printf '%s %s%s%s%s%s' "$label" "$c" "$fill" "$dim" "$emp" "$reset"
10781078
}
10791079
10801080
U5=$(echo "$input" | jq -r '.rate_limits.five_hour.used_percentage // empty' 2>/dev/null)

step-final/step-final-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ usage_seg() {
198198
local dim=$'\033[38;5;240m' reset=$'\033[0m'
199199
while [ $i -lt $filled ]; do fill="${fill}█"; i=$((i+1)); done
200200
i=0; while [ $i -lt $empty ]; do emp="${emp}█"; i=$((i+1)); done
201-
printf '%s %s%s%s%s%s %s%%' "$label" "$c" "$fill" "$dim" "$emp" "$reset" "$p"
201+
printf '%s %s%s%s%s%s' "$label" "$c" "$fill" "$dim" "$emp" "$reset"
202202
}
203203
204204
U5=$(echo "$input" | jq -r '.rate_limits.five_hour.used_percentage // empty' 2>/dev/null)

templates/INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Close and reopen Claude Code for the status line to take effect.
4747
| 👑 Hive | Active hive-mind session |
4848
| 🍯 Mini | Active mini swarm session |
4949

50-
It also appends your current model, session duration, context-window usage, and Claude rate-limit bars for the **5h** and **7-day** windows — `5h █░░░░ 13% · 7d █░░░░ 24%` — color-graded green → yellow → red as you approach each limit. The percentages come from Claude Code's own `rate_limits` data passed to the script on stdin, so there's no API token or network call.
50+
It also appends your current model, session duration, context-window usage, and Claude rate-limit bars for the **5h** and **7-day** windows — `5h █░░░░ · 7d █░░░░` — color-graded green → yellow → red as you approach each limit. The fill comes from Claude Code's own `rate_limits` data passed to the script on stdin, so there's no API token or network call. (Bars are number-free by design; to show the percent, see the script's `usage_seg` `printf`.)
5151

5252
## Swarm/Hive Lock Files
5353

templates/statusline.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ usage_seg() {
124124
local dim=$'\033[38;5;240m' reset=$'\033[0m'
125125
while [ $i -lt $filled ]; do fill="${fill}"; i=$((i+1)); done
126126
i=0; while [ $i -lt $empty ]; do emp="${emp}"; i=$((i+1)); done
127-
printf '%s %s%s%s%s%s %s%%' "$label" "$c" "$fill" "$dim" "$emp" "$reset" "$p"
127+
printf '%s %s%s%s%s%s' "$label" "$c" "$fill" "$dim" "$emp" "$reset"
128128
}
129129

130130
U5=$(echo "$input" | jq -r '.rate_limits.five_hour.used_percentage // empty' 2>/dev/null)

0 commit comments

Comments
 (0)