From ed5c04e370619553fb7f43b1993d82ba85f4b2dd Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 11 Mar 2017 12:46:27 +0800 Subject: zsh: Unset variable after use --- _zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_zshrc b/_zshrc index d01135d..97c22ce 100644 --- a/_zshrc +++ b/_zshrc @@ -24,9 +24,10 @@ ## -for f in ~/.zsh/[0-9][0-9]-*.zsh; do - source ${f} +for _f in ~/.zsh/[0-9][0-9]-*.zsh; do + source ${_f} done +unset _f ## Local configurations [ -r ~/.zshrc.local ] && source ~/.zshrc.local || true -- cgit v1.2.2