X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Fenv.local;h=91759a74862b60ea07cbf38a2fafd0513c510f6e;hb=385cc73961b3bbeba56c20ca98cf3bf68761476e;hp=a3cdc6a31774369a22dc3fb81884eb651229fcd2;hpb=486bbbcbb78ff022420640be59ebe72a24cb0882;p=config%2Fdotfiles.git diff --git a/zsh/env.local b/zsh/env.local index a3cdc6a..91759a7 100644 --- a/zsh/env.local +++ b/zsh/env.local @@ -6,9 +6,7 @@ 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. -unset MANPATH