11253336cfc771537f63268fd03d466cd27936a0

Author
Benjamin Stier <ben@unpatched.de>
Committer
Benjamin Stier <ben@unpatched.de>
Date

Message

Fixes the profiles-plugin

An error was introduced with 7f75bb9, which uses special vars. This is the
fix.

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