mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-16 11:36:16 +08:00
fix(michelebologna): replace deprecated $[...] arithmetic with $((...)) syntax
This commit is contained in:
parent
f95bf08756
commit
4af86434f0
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user