Browse Source

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

Carlo Sala 2 years ago
parent
commit
201e9dea59
1 changed files with 1 additions and 1 deletions
  1. 1 1
      themes/michelebologna.zsh-theme

+ 1 - 1
themes/michelebologna.zsh-theme

@@ -40,7 +40,7 @@ local username_root_color=$red
 local hostname_root_color=$red
 
 # 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
 hostname_color=%(!.$hostname_root_color.$hostname_normal_color)