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
553 B
Cheetah
20 lines
553 B
Cheetah
4 months ago
|
# chezmoi:template:left-delimiter=#{{
|
||
|
#{{- /* vim: set filetype=zsh: */ -}}
|
||
|
|
||
4 years ago
|
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
|
||
2 years ago
|
unset file
|
||
4 years ago
|
fi
|
||
|
|
||
4 months ago
|
#{{- $home := .chezmoi.homeDir }}
|
||
|
#{{ range $file := (glob (joinPath $home ".config" "zsh" "zshrc.d" "*.zsh")) }}
|
||
|
source "#{{ replace $home "${HOME}" $file }}"
|
||
|
#{{- end }}
|