]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/rcsstub
make urlencode executable
[zsh.git] / .zsh / rcsstub
index 60beecb34ee1827e7bb3776f146e47e33fe7b68a..b7736deb022695d50efac8a7af5eb5d04a5859ff 100644 (file)
@@ -8,17 +8,23 @@
 # Source repository: http://git.madduck.net/v/etc/zsh.git
 #
 
-. $ZDOTDIR/logging
-. $ZDOTDIR/util
-
 if [[ -o rcs ]]; then
-  __do_debug && set -x || :
+  source $ZDOTDIR/logging
+  source $ZDOTDIR/util
+  source $ZDOTDIR/sourcedir
+
+#  __do_debug && set -x || :
+
+  _DIR=$ZDOTDIR/${${(%):-%1N}#.}
+  sourcedir $_DIR
+
+  if [[ -d $_DIR/parts.d ]]; then
+    sourcedir $_DIR/parts.d
+  fi
 
-  file="%1N"; file="${(%)file}"
-  . $ZDOTDIR/sourcedir
-  sourcedir $ZDOTDIR/${file#.}
+  unset _DIR
 
-  __do_debug && set +x || :
+#  __do_debug && set +x || :
 fi
 
 # vim:ft=zsh