]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/env.local
Simplified loading of config files by using a function.
[config/dotfiles.git] / zsh / env.local
index a3cdc6a31774369a22dc3fb81884eb651229fcd2..6eb88a4fbf1dc680f4c2e16b3ba65a9fbe6a6933 100644 (file)
@@ -6,8 +6,9 @@
 MYUNIX=~/Documents/unix
 
 # Add my bin/ directory, macports bin/ and sbin/ and the X11 bin/ directory to
-# the default PATH.
-typeset -U path
+# the default PATH. -g is necessary as the file is loaded by source_config(),
+# otherwise the path wouldn't be changed outside the function.
+typeset -g -U path
 path=($MYUNIX/bin /opt/local/bin /opt/local/sbin $path /usr/X11R6/bin)
 
 # Necessary for xterm to find man pages through PATH.