fix: убрать имя и хост из статусной строки, сократить путь до ~
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user