update prompt colors for branch name visibility
Rearranged color assignments for improved clarity in the git status prompt, ensuring the branch name is highlighted in bright green for better visibility.
This commit is contained in:
parent
67b2f6ed25
commit
2678595902
|
@ -13,8 +13,9 @@ function my_gitstatus_prompt_update() {
|
|||
[[ "$VCS_STATUS_RESULT" == ok-sync ]] || return 0 # not a git repo
|
||||
|
||||
local reset=$'\001\e[0m\002' # no color
|
||||
local bright_white=$'\001\e[1;37m\002' # bright white - branch name and modified/untracked
|
||||
local red=$'\001\e[38;5;196m\002' # red - urgent attention (conflicts, merge)
|
||||
local bright_green=$'\001\e[01;32m\002' # bright green - branch name (matches hostname)
|
||||
local bright_white=$'\001\e[1;37m\002' # bright white - modified/untracked
|
||||
local red=$'\001\e[38;5;196m\002' # red - urgent attention (conflicts, merge)
|
||||
|
||||
local p
|
||||
|
||||
|
@ -32,7 +33,7 @@ function my_gitstatus_prompt_update() {
|
|||
|
||||
# Truncate long branch names and tags
|
||||
(( ${#where} > 32 )) && where="${where:0:12}…${where: -12}"
|
||||
p+="${bright_white}${where}"
|
||||
p+="${bright_green}${where}"
|
||||
|
||||
# Remote tracking status (no color - less distracting)
|
||||
(( VCS_STATUS_COMMITS_BEHIND )) && p+=" ${reset}behind:${VCS_STATUS_COMMITS_BEHIND}"
|
||||
|
|
Loading…
Reference in New Issue