Do not leak local vars to shell
This commit is contained in:
parent
054f3a8439
commit
ec7266334e
2 changed files with 16 additions and 8 deletions
9
zshenv
9
zshenv
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue