mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 22:30:07 +00:00
11253336cf
An error was introduced with 7f75bb9
, which uses special vars. This is the
fix.
12 lines
405 B
Bash
12 lines
405 B
Bash
# 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)
|
|
parts=(${(s:.:)HOST})
|
|
for i in {${#parts}..1}; do
|
|
profile=${(j:.:)${parts[$i,${#parts}]}}
|
|
file=$ZSH_CUSTOM/profiles/$profile
|
|
if [ -f $file ]; then
|
|
source $file
|
|
fi
|
|
done
|