mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
zsh: zshenv source all environment in a loop
source only accepts one argument, so it must be called once for each environment file. Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
parent
a2ad4853ed
commit
f4b03038ee
@ -4,7 +4,7 @@
|
|||||||
# ZDOTDIR is overriden and .zshrc is not in ~
|
# ZDOTDIR is overriden and .zshrc is not in ~
|
||||||
if [ -z "$ZDOTDIR" ]; then
|
if [ -z "$ZDOTDIR" ]; then
|
||||||
set -o allexport
|
set -o allexport
|
||||||
. ~/.config/environment.d/*.conf
|
for f in "$HOME"/.config/environment.d/*.conf; do . "$f"; done
|
||||||
set +o allexport
|
set +o allexport
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user