Do not leak local vars to shell

This commit is contained in:
crater2150 2020-04-29 10:35:23 +02:00
parent 054f3a8439
commit ec7266334e
2 changed files with 16 additions and 8 deletions

9
zshenv
View file

@ -1,7 +1,10 @@
export ZDOTDIR="${$(readlink $HOME/.zshenv):h:a}"
exists() { command -v "$@" >/dev/null }
for i in $ZDOTDIR/env/*.zsh; do
. $i
done
function(){
local i
for i in $ZDOTDIR/env/*.zsh; do
. $i
done
}