mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
fix(michelebologna): replace deprecated $[...] arithmetic with $((...)) syntax
This commit is contained in:
parent
f95bf08756
commit
4af86434f0
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue