Diff
1diff --git a/plugins/profiles/profiles.plugin.zsh b/plugins/profiles/profiles.plugin.zsh
2index 8faae6b53290b9fa9fb37255fb0159d142327df7..4b3d6a852bf66262aa731925dd2e467b097cd122 100644
3--- a/plugins/profiles/profiles.plugin.zsh
4+++ b/plugins/profiles/profiles.plugin.zsh
5@@ -2,7 +2,7 @@
6
7 # This will look for a custom profile for the local machine and each domain or
8 # subdomain it belongs to. (e.g. com, example.com and foo.example.com)
9-parts=(${(s:.:)$(hostname)})
10+parts=(${(s:.:)$HOST})
11 for i in {${#parts}..1}; do
12 profile=${(j:.:)${parts[$i,${#parts}]}}
13 file=$ZSH_CUSTOM/profiles/$profile
14diff --git a/themes/candy-kingdom.zsh-theme b/themes/candy-kingdom.zsh-theme
15index 718977d904d512eeafe1b9d9ec6bd0c0f34c3d43..8891287585152e18aa193edc1c4c53428659dd47 100644
16--- a/themes/candy-kingdom.zsh-theme
17+++ b/themes/candy-kingdom.zsh-theme
18@@ -13,7 +13,7 @@ patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset
19 }
20
21 function box_name {
22- [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
23+ [ -f ~/.box-name ] && cat ~/.box-name || echo $SHORT_HOST || echo $HOST
24 }
25
26 PROMPT='
27diff --git a/themes/dieter.zsh-theme b/themes/dieter.zsh-theme
28index 0a5e9265bd680e628c2da9ae61b5ae37159d1214..58d9f88a9c0ed2de78a3b9ab8f769caa6d312db4 100644
29--- a/themes/dieter.zsh-theme
30+++ b/themes/dieter.zsh-theme
31@@ -21,7 +21,7 @@ local user="%(!.%{$fg[blue]%}.%{$fg[blue]%})%n%{$reset_color%}"
32
33 # Hostname part. compressed and colorcoded per host_repr array
34 # if not found, regular hostname in default color
35-local host="@${host_repr[$(hostname)]:-$(hostname)}%{$reset_color%}"
36+local host="@${host_repr[$HOST]:-$HOST}%{$reset_color%}"
37
38 # Compacted $PWD
39 local pwd="%{$fg[blue]%}%c%{$reset_color%}"
40diff --git a/themes/fino-time.zsh-theme b/themes/fino-time.zsh-theme
41index 901c4d99fdfe730a91ed92e95860dea1a8cbcf67..67b6b6e08edd45f5069aeb76c19dcd37c314930a 100644
42--- a/themes/fino-time.zsh-theme
43+++ b/themes/fino-time.zsh-theme
44@@ -21,7 +21,7 @@ function prompt_char {
45 }
46
47 function box_name {
48- [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
49+ [ -f ~/.box-name ] && cat ~/.box-name || echo $SHORT_HOST || echo $HOST
50 }
51
52
53diff --git a/themes/fino.zsh-theme b/themes/fino.zsh-theme
54index 411dec9b9dedd052ffa2c15ed6d275283da1443f..50d41e89976ed0f7062523a52c1701218a60d42f 100644
55--- a/themes/fino.zsh-theme
56+++ b/themes/fino.zsh-theme
57@@ -17,7 +17,7 @@ function prompt_char {
58 }
59
60 function box_name {
61- [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
62+ [ -f ~/.box-name ] && cat ~/.box-name || echo $SHORT_HOST || echo $HOST
63 }
64
65 local ruby_env=''
66diff --git a/themes/kardan.zsh-theme b/themes/kardan.zsh-theme
67index fd6586a9d70ce03e7fe20bdc7921d66b94e3576e..9a3d59109ac31b8199f46712cb43759cdb56a6c4 100644
68--- a/themes/kardan.zsh-theme
69+++ b/themes/kardan.zsh-theme
70@@ -1,7 +1,7 @@
71 # Simple theme based on my old zsh settings.
72
73 function get_host {
74- echo '@'`hostname`''
75+ echo '@'$HOST
76 }
77
78 PROMPT='> '
79diff --git a/themes/michelebologna.zsh-theme b/themes/michelebologna.zsh-theme
80index ef4c6d740d8abd92e0fb647906c172050748caa0..a7599c8f52ce077e2b4aa7dd223f86a528cec1f4 100644
81--- a/themes/michelebologna.zsh-theme
82+++ b/themes/michelebologna.zsh-theme
83@@ -17,7 +17,7 @@ USERNAME_NORMAL_COLOR=$WHITE
84 USERNAME_ROOT_COLOR=$RED
85 HOSTNAME_NORMAL_COLOR=$BLUE
86 # uncomment next line if you want auto-generated hostname color
87-#for i in `hostname`; HOSTNAME_NORMAL_COLOR=$COLOR_ARRAY[$[((#i))%7+1]]
88+#for i in $HOST; HOSTNAME_NORMAL_COLOR=$COLOR_ARRAY[$[((#i))%7+1]]
89 HOSTNAME_ROOT_COLOR=$RED
90 HOSTNAME_COLOR=%(!.$HOSTNAME_ROOT_COLOR.$HOSTNAME_NORMAL_COLOR)
91 CURRENT_DIR_COLOR=$CYAN
92diff --git a/themes/ys.zsh-theme b/themes/ys.zsh-theme
93index 65448964dae05d79a0b6bf0c032af384762d9eaf..0171391001a171b1f3e8f1bb0ae09d339b7d963a 100644
94--- a/themes/ys.zsh-theme
95+++ b/themes/ys.zsh-theme
96@@ -8,7 +8,7 @@
97
98 # Machine name.
99 function box_name {
100- [ -f ~/.box-name ] && cat ~/.box-name || hostname
101+ [ -f ~/.box-name ] && cat ~/.box-name || echo $HOST
102 }
103
104 # Directory info.