mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-26 14:30:12 +08:00
fix(michelebologna): use blue instead of white (#11810)
This commit is contained in:
parent
7d5e12500a
commit
b9354c5e9c
@ -29,14 +29,13 @@ local cyan="%{$fg_bold[cyan]%}"
|
|||||||
local yellow="%{$fg_bold[yellow]%}"
|
local yellow="%{$fg_bold[yellow]%}"
|
||||||
local blue="%{$fg_bold[blue]%}"
|
local blue="%{$fg_bold[blue]%}"
|
||||||
local magenta="%{$fg_bold[magenta]%}"
|
local magenta="%{$fg_bold[magenta]%}"
|
||||||
local white="%{$fg_bold[white]%}"
|
|
||||||
local reset="%{$reset_color%}"
|
local reset="%{$reset_color%}"
|
||||||
|
|
||||||
local -a color_array
|
local -a color_array
|
||||||
color_array=($green $red $cyan $yellow $blue $magenta $white)
|
color_array=($green $red $cyan $yellow $blue $magenta)
|
||||||
|
|
||||||
local username_color=$white
|
local username_color=$blue
|
||||||
local hostname_color=$color_array[$[((#HOST))%7+1]] # choose hostname color based on first character
|
local hostname_color=$color_array[$[((#HOST))%6+1]] # choose hostname color based on first character
|
||||||
local current_dir_color=$blue
|
local current_dir_color=$blue
|
||||||
|
|
||||||
local username="%n"
|
local username="%n"
|
||||||
@ -66,10 +65,10 @@ function michelebologna_git_prompt {
|
|||||||
local out=$(git_prompt_info)$(git_prompt_status)$(git_remote_status)
|
local out=$(git_prompt_info)$(git_prompt_status)$(git_remote_status)
|
||||||
[[ -n $out ]] || return
|
[[ -n $out ]] || return
|
||||||
printf " %s(%s%s%s)%s" \
|
printf " %s(%s%s%s)%s" \
|
||||||
"%{$fg_bold[white]%}" \
|
"%{$fg_bold[blue]%}" \
|
||||||
"%{$fg_bold[green]%}" \
|
"%{$fg_bold[green]%}" \
|
||||||
"$out" \
|
"$out" \
|
||||||
"%{$fg_bold[white]%}" \
|
"%{$fg_bold[blue]%}" \
|
||||||
"%{$reset_color%}"
|
"%{$reset_color%}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user