X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=zsh%2Fenv.local;h=6eb88a4fbf1dc680f4c2e16b3ba65a9fbe6a6933;hp=a3cdc6a31774369a22dc3fb81884eb651229fcd2;hb=0f76f93bd286c46d281a574a6db67e038b6d42a7;hpb=dbd35008dac79b1213e70d48e11b19920a2a54f7 diff --git a/zsh/env.local b/zsh/env.local index a3cdc6a..6eb88a4 100644 --- a/zsh/env.local +++ b/zsh/env.local @@ -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.