Merge pull request #3299 from apoxa/fix-profiles
Fix for the profile plugin.
Diff
1diff --git a/plugins/profiles/profiles.plugin.zsh b/plugins/profiles/profiles.plugin.zsh
2index 4b3d6a852bf66262aa731925dd2e467b097cd122..5bc56cea0620d0ac3d9224f6accd9d013d1568da 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:.:)$HOST})
10+parts=(${(s:.:)HOST})
11 for i in {${#parts}..1}; do
12 profile=${(j:.:)${parts[$i,${#parts}]}}
13 file=$ZSH_CUSTOM/profiles/$profile