my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
405 B

3 years ago
  1. # You will probably want to list this plugin as the first in your .zshrc.
  2. # This will look for a custom profile for the local machine and each domain or
  3. # subdomain it belongs to. (e.g. com, example.com and foo.example.com)
  4. parts=(${(s:.:)HOST})
  5. for i in {${#parts}..1}; do
  6. profile=${(j:.:)${parts[$i,${#parts}]}}
  7. file=$ZSH_CUSTOM/profiles/$profile
  8. if [ -f $file ]; then
  9. source $file
  10. fi
  11. done