summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorCarlo Sala <carlosalag@protonmail.com>2022-02-24 13:52:52 +0100
committerGitHub <noreply@github.com>2022-02-24 13:52:52 +0100
commit201e9dea594ea0a477370ae8dba6d09f9ae79149 (patch)
tree25945ff8635753d579b5c31774e4e1608c057bd1 /themes
parent0b0af4df6aab075d257d4a0dcfd1bf42318fc69a (diff)
downloadzsh-201e9dea594ea0a477370ae8dba6d09f9ae79149.tar.gz
zsh-201e9dea594ea0a477370ae8dba6d09f9ae79149.tar.bz2
zsh-201e9dea594ea0a477370ae8dba6d09f9ae79149.zip
fix(michelebologna): use `$HOST` variable instead of running `hostname` (#10724)
Diffstat (limited to 'themes')
-rw-r--r--themes/michelebologna.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/michelebologna.zsh-theme b/themes/michelebologna.zsh-theme
index 7ff6a7ffe..bb567b3d8 100644
--- a/themes/michelebologna.zsh-theme
+++ b/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)