mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 23:08:00 +00:00
Unset path_file after use
This commit is contained in:
parent
76347e638a
commit
aed0d586cb
@ -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 HUP # Don't kill jobs on shell exit.
|
||||||
unsetopt CHECK_JOBS # Don't report on jobs when shell exit.
|
unsetopt CHECK_JOBS # Don't report on jobs when shell exit.
|
||||||
|
|
||||||
# PATH
|
# Paths
|
||||||
typeset -gU cdpath fpath mailpath manpath path
|
typeset -gU cdpath fpath mailpath manpath path
|
||||||
typeset -gUT INFOPATH infopath
|
typeset -gUT INFOPATH infopath
|
||||||
|
|
||||||
@ -46,6 +46,7 @@ manpath=(
|
|||||||
for path_file in /etc/manpaths.d/*(.N); do
|
for path_file in /etc/manpaths.d/*(.N); do
|
||||||
manpath+=($(<$path_file))
|
manpath+=($(<$path_file))
|
||||||
done
|
done
|
||||||
|
unset path_file
|
||||||
|
|
||||||
path=(
|
path=(
|
||||||
/usr/local/{bin,sbin}
|
/usr/local/{bin,sbin}
|
||||||
@ -57,6 +58,7 @@ path=(
|
|||||||
for path_file in /etc/paths.d/*(.N); do
|
for path_file in /etc/paths.d/*(.N); do
|
||||||
path+=($(<$path_file))
|
path+=($(<$path_file))
|
||||||
done
|
done
|
||||||
|
unset path_file
|
||||||
|
|
||||||
# Language
|
# Language
|
||||||
if [[ -z "$LANG" ]]; then
|
if [[ -z "$LANG" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user