Skip to content

Commit

Permalink
Unset path_file after use
Browse files Browse the repository at this point in the history
  • Loading branch information
sorin-ionescu committed May 5, 2012
1 parent eb4f912 commit d91bb7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/environment/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ unsetopt BG_NICE # Don't run all background jobs at a lower priority.
unsetopt HUP # Don't kill jobs on shell exit.
unsetopt CHECK_JOBS # Don't report on jobs when shell exit.

# PATH
# Paths
typeset -gU cdpath fpath mailpath manpath path
typeset -gUT INFOPATH infopath

Expand All @@ -46,6 +46,7 @@ manpath=(
for path_file in /etc/manpaths.d/*(.N); do
manpath+=($(<$path_file))
done
unset path_file

path=(
/usr/local/{bin,sbin}
Expand All @@ -57,6 +58,7 @@ path=(
for path_file in /etc/paths.d/*(.N); do
path+=($(<$path_file))
done
unset path_file

# Language
if [[ -z "$LANG" ]]; then
Expand Down

0 comments on commit d91bb7d

Please sign in to comment.