diff --git a/home-configs/claude/statusline-command.sh b/home-configs/claude/statusline-command.sh index f49e031..572b14e 100644 --- a/home-configs/claude/statusline-command.sh +++ b/home-configs/claude/statusline-command.sh @@ -7,7 +7,8 @@ week_pct=$(echo "$input" | jq -r '.rate_limits.seven_day.used_percentage // empt branch=$(git -C "$cwd" --no-optional-locks symbolic-ref --short HEAD 2>/dev/null) -printf "\033[01;32m%s@%s\033[00m:\033[01;34m%s\033[00m" "$(whoami)" "$(hostname -s)" "$cwd" +short_cwd="${cwd/#$HOME/\~}" +printf "\033[01;34m%s\033[00m" "$short_cwd" [ -n "$branch" ] && printf " \033[01;33m[%s]\033[00m" "$branch" [ -n "$model" ] && printf " \033[00;36m%s\033[00m" "$model"