From 4af86434f0c927a19b3976f06ff295fd8b94362b Mon Sep 17 00:00:00 2001 From: Michele Bologna Date: Mon, 18 May 2026 09:43:44 +0200 Subject: [PATCH] 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"