From aed0d586cba1aea1df3ab1e539f5b61e244ba863 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sat, 5 May 2012 17:47:32 -0400 Subject: [PATCH] Unset path_file after use --- modules/environment/init.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/environment/init.zsh b/modules/environment/init.zsh index 104936c..7460e72 100644 --- a/modules/environment/init.zsh +++ b/modules/environment/init.zsh @@ -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 @@ -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} @@ -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