Skip to content

Commit

Permalink
fix(michelebologna): use $HOST variable instead of running `hostnam…
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala authored Feb 24, 2022
1 parent 0b0af4d commit 201e9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/michelebologna.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 201e9de

Please sign in to comment.