fix: убрать имя и хост из статусной строки, сократить путь до ~

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-06 10:21:18 +03:00
parent 3dfd7ff034
commit 2f48d038bd

View File

@@ -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) 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 "$branch" ] && printf " \033[01;33m[%s]\033[00m" "$branch"
[ -n "$model" ] && printf " \033[00;36m%s\033[00m" "$model" [ -n "$model" ] && printf " \033[00;36m%s\033[00m" "$model"