Unverified Commit 201e9dea authored by Carlo Sala's avatar Carlo Sala Committed by GitHub

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

parent 0b0af4df
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment