fix(michelebologna): replace deprecated $[...] arithmetic with $((...)) syntax

This commit is contained in:
Michele Bologna 2026-05-18 09:43:44 +02:00
commit 4af86434f0
No known key found for this signature in database

View file

@ -34,7 +34,7 @@ local reset="%{$reset_color%}"
local -a color_array=($green $red $cyan $yellow $blue $magenta) local -a color_array=($green $red $cyan $yellow $blue $magenta)
local username_color=$blue 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 current_dir_color=$blue
local username="%n" local username="%n"