1
0
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:
Joe Groocock 2020-08-23 17:04:05 +01:00
parent a2ad4853ed
commit f4b03038ee
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -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