1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-24 23:00:09 +00:00

fix(michelebologna): use $HOST variable instead of running hostname (#10724)

This commit is contained in:
Carlo Sala 2022-02-24 13:52:52 +01:00 committed by GitHub
parent 0b0af4df6a
commit 201e9dea59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ local username_root_color=$red
local hostname_root_color=$red local hostname_root_color=$red
# calculating hostname color with hostname characters # calculating hostname color with hostname characters
for i in `hostname`; local hostname_normal_color=$color_array[$[((#i))%7+1]] for i in $HOST; local hostname_normal_color=$color_array[$[((#i))%7+1]]
local -a hostname_color local -a hostname_color
hostname_color=%(!.$hostname_root_color.$hostname_normal_color) hostname_color=%(!.$hostname_root_color.$hostname_normal_color)