Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1573 from flz/master

Add new profiles plugin.
  • Loading branch information...
commit 22390353682f742d8ea5e7ef0ec451fa836f2654 2 parents 9276b5f + 6d762fa
@robbyrussell authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 plugins/profiles/profiles.plugin.zsh
12 plugins/profiles/profiles.plugin.zsh
@@ -0,0 +1,12 @@
+# 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, and
+for i in {${#parts}..1}; do
+ profile=${(j:.:)${parts[$i,${#parts}]}}
+ file=$ZSH_CUSTOM/profiles/$profile
+ if [ -f $file ]; then
+ source $file
+ fi
Please sign in to comment.
Something went wrong with that request. Please try again.