Change all hostname calls for $HOST or $SHORT_HOST

This commit is contained in:
Marc Cornellà
2014-10-09 17:05:48 +02:00
parent 4310a15de5
commit 95d795e8ca
8 changed files with 8 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
# This will look for a custom profile for the local machine and each domain or
# subdomain it belongs to. (e.g. com, example.com and foo.example.com)
parts=(${(s:.:)$(hostname)})
parts=(${(s:.:)$HOST})
for i in {${#parts}..1}; do
profile=${(j:.:)${parts[$i,${#parts}]}}
file=$ZSH_CUSTOM/profiles/$profile