From f95bf087566ddc3bffed7ac09a911ff2cf3e2bd5 Mon Sep 17 00:00:00 2001 From: Michele Bologna Date: Mon, 18 May 2026 09:43:38 +0200 Subject: [PATCH 1/5] refactor(michelebologna): merge color_array declaration and assignment --- themes/michelebologna.zsh-theme | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/themes/michelebologna.zsh-theme b/themes/michelebologna.zsh-theme index b13b2caf1..13a2219fd 100644 --- a/themes/michelebologna.zsh-theme +++ b/themes/michelebologna.zsh-theme @@ -31,8 +31,7 @@ local blue="%{$fg_bold[blue]%}" local magenta="%{$fg_bold[magenta]%}" local reset="%{$reset_color%}" -local -a color_array -color_array=($green $red $cyan $yellow $blue $magenta) +local -a color_array=($green $red $cyan $yellow $blue $magenta) local username_color=$blue local hostname_color=$color_array[$[((#HOST))%6+1]] # choose hostname color based on first character From 4af86434f0c927a19b3976f06ff295fd8b94362b Mon Sep 17 00:00:00 2001 From: Michele Bologna Date: Mon, 18 May 2026 09:43:44 +0200 Subject: [PATCH 2/5] fix(michelebologna): replace deprecated $[...] arithmetic with $((...)) syntax --- themes/michelebologna.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/michelebologna.zsh-theme b/themes/michelebologna.zsh-theme index 13a2219fd..b54cc580f 100644 --- a/themes/michelebologna.zsh-theme +++ b/themes/michelebologna.zsh-theme @@ -34,7 +34,7 @@ local reset="%{$reset_color%}" local -a color_array=($green $red $cyan $yellow $blue $magenta) local username_color=$blue -local hostname_color=$color_array[$[((#HOST))%6+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 username="%n" From 8d75d60a07874096cee45b006261d4047d3162fb Mon Sep 17 00:00:00 2001 From: Michele Bologna Date: Mon, 18 May 2026 09:43:50 +0200 Subject: [PATCH 3/5] fix(michelebologna): correct jobs label from 'fg:' to 'jobs:' --- themes/michelebologna.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/michelebologna.zsh-theme b/themes/michelebologna.zsh-theme index b54cc580f..c449e1355 100644 --- a/themes/michelebologna.zsh-theme +++ b/themes/michelebologna.zsh-theme @@ -44,7 +44,7 @@ local current_dir="%~" local username_output="%(!..${username_color}${username}${reset}@)" local hostname_output="${hostname_color}${hostname}${reset}" local current_dir_output="${current_dir_color}${current_dir}${reset}" -local jobs_bg="${red}fg: %j$reset" +local jobs_bg="${red}jobs: %j$reset" local last_command_output="%(?.%(!.$red.$green).$yellow)" ZSH_THEME_GIT_PROMPT_PREFIX="" From 14b14c95069814cd5086a1167f6a2362a83f2ded Mon Sep 17 00:00:00 2001 From: Michele Bologna Date: Mon, 18 May 2026 09:43:56 +0200 Subject: [PATCH 4/5] fix(michelebologna): escape trailing $ in GIT_PROMPT_STASHED --- themes/michelebologna.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/michelebologna.zsh-theme b/themes/michelebologna.zsh-theme index c449e1355..9e8a3f489 100644 --- a/themes/michelebologna.zsh-theme +++ b/themes/michelebologna.zsh-theme @@ -54,7 +54,7 @@ ZSH_THEME_GIT_PROMPT_CLEAN="" ZSH_THEME_GIT_PROMPT_UNTRACKED="$blue%%" ZSH_THEME_GIT_PROMPT_MODIFIED="$red*" ZSH_THEME_GIT_PROMPT_ADDED="$green+" -ZSH_THEME_GIT_PROMPT_STASHED="$blue$" +ZSH_THEME_GIT_PROMPT_STASHED="${blue}\$" ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE="$green=" ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE=">" ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="<" From 027125a286411698214829b2ab01f4e0e0fa6cc8 Mon Sep 17 00:00:00 2001 From: Michele Bologna Date: Mon, 18 May 2026 09:44:02 +0200 Subject: [PATCH 5/5] feat(michelebologna): add colors to AHEAD_REMOTE and BEHIND_REMOTE indicators --- themes/michelebologna.zsh-theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/michelebologna.zsh-theme b/themes/michelebologna.zsh-theme index 9e8a3f489..449c280c5 100644 --- a/themes/michelebologna.zsh-theme +++ b/themes/michelebologna.zsh-theme @@ -56,8 +56,8 @@ ZSH_THEME_GIT_PROMPT_MODIFIED="$red*" ZSH_THEME_GIT_PROMPT_ADDED="$green+" ZSH_THEME_GIT_PROMPT_STASHED="${blue}\$" ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE="$green=" -ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE=">" -ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="<" +ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="${green}>" +ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="${yellow}<" ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE="$red<>" function michelebologna_git_prompt {