]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh: Make sure entries in $fpath are unique.
authorSimon Ruderich <simon@ruderich.org>
Tue, 31 Mar 2009 15:31:56 +0000 (17:31 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 31 Mar 2009 15:31:56 +0000 (17:31 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 26271b3b44ca5c3d9892abd302ad4df613c4a155..0370fb00d8ddf720ae4949e05551af5ce9f044b2 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -32,6 +32,8 @@ setopt ignoreeof
 
 # FUNCTION SETTINGS
 
+# Make sure every entry in $fpath is unique.
+typeset -U fpath
 # Set correct fpath to allow loading my functions (including completion
 # functions).
 fpath=(~/.zsh/functions $fpath)