You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
521 B
Plaintext
20 lines
521 B
Plaintext
if [[ -d "${XDG_CONFIG_HOME}/zsh/env.d" ]]; then
|
|
for file in "${XDG_CONFIG_HOME}"/zsh/env.d/*.env(N); do
|
|
eval "$(
|
|
grep -v '^\s*\#' "${file}" |
|
|
grep -v '^\s*$' |
|
|
sed 's/^\s*export//g' |
|
|
sed 's/^/export /g'
|
|
)"
|
|
done
|
|
fi
|
|
|
|
if [[ -d "${XDG_CONFIG_HOME}/zsh/zshrc.d" ]]; then
|
|
for file in "${XDG_CONFIG_HOME}"/zsh/zshrc.d/*.zsh(N); do
|
|
if [ -r "$file" ]; then
|
|
#shellcheck disable=1090
|
|
source "$file"
|
|
fi
|
|
done
|
|
fi
|