Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add new profiles plugin.

Depending on the machine you're logged into, you may want to use
specific configuration. Add 'profiles' to your list of plugin will
try to find a profile for the local machine and each (sub)domain
it belongs to.
  • Loading branch information...
commit 6d762fa053154a10befec1a42c963fff072ebece 1 parent 615e41b
@flz flz 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.