2013-01-30 13:16:26 +00:00
|
|
|
# You will probably want to list this plugin as the first in your .zshrc.
|
|
|
|
|
|
|
|
# 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)
|
2014-11-07 09:47:27 +00:00
|
|
|
parts=(${(s:.:)HOST})
|
2013-01-30 13:16:26 +00:00
|
|
|
for i in {${#parts}..1}; do
|
|
|
|
profile=${(j:.:)${parts[$i,${#parts}]}}
|
|
|
|
file=$ZSH_CUSTOM/profiles/$profile
|
|
|
|
if [ -f $file ]; then
|
|
|
|
source $file
|
|
|
|
fi
|
|
|
|
done
|