]> git.madduck.net Git - etc/zsh.git/blobdiff - .zsh/zshenv/00-fpath

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Overhaul of the entire config. Yay for big diffs.
[etc/zsh.git] / .zsh / zshenv / 00-fpath
similarity index 70%
rename from .zsh/zshenv/01_fpath
rename to .zsh/zshenv/00-fpath
index 0a1253a36418ceb25c387d4dbb067e5a7d650022..d5ad792eff3572d5e1d6651d15e478e756bf6e32 100644 (file)
@@ -1,4 +1,3 @@
-# zshenv/00_fpath
 #
 # Adds local functions directory to $fpath
 #
@@ -8,6 +7,10 @@
 # Source repository: http://git.madduck.net/v/etc/zsh.git
 #
 
-fpath=($ZDOTDIR/func $fpath)
+typeset -gU fpath FPATH
+
+for fd in $ZDOTDIR/func; do
+  [ -d "$fd" ] && array_prepend fpath "$fd"
+done
 
 # vim:ft=zsh