mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
refactor(michelebologna): merge color_array declaration and assignment
This commit is contained in:
parent
cb64103161
commit
f95bf08756
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue