Remove unused zsh config section
parent
a2f39569a9
commit
e26c766233
@ -1,19 +1,7 @@
|
|||||||
# chezmoi:template:left-delimiter=#{{
|
# chezmoi:template:left-delimiter=#{{
|
||||||
#{{- /* vim: set filetype=zsh: */ -}}
|
#{{- /* vim: set filetype=zsh: */ -}}
|
||||||
|
|
||||||
if [[ -d "${XDG_CONFIG_HOME}/zsh/env.d" ]]; then
|
#{{- $home := .chezmoi.homeDir -}}
|
||||||
for file in "${XDG_CONFIG_HOME}"/zsh/env.d/*.env(N); do
|
#{{- range $file := (glob (joinPath $home ".config" "zsh" "zshrc.d" "*.zsh")) -}}
|
||||||
eval "$(
|
|
||||||
grep -v '^\s*\#' "${file}" |
|
|
||||||
grep -v '^\s*$' |
|
|
||||||
sed 's/^\s*export//g' |
|
|
||||||
sed 's/^/export /g'
|
|
||||||
)"
|
|
||||||
done
|
|
||||||
unset file
|
|
||||||
fi
|
|
||||||
|
|
||||||
#{{- $home := .chezmoi.homeDir }}
|
|
||||||
#{{ range $file := (glob (joinPath $home ".config" "zsh" "zshrc.d" "*.zsh")) }}
|
|
||||||
source "#{{ replace $home "${HOME}" $file }}"
|
source "#{{ replace $home "${HOME}" $file }}"
|
||||||
#{{- end }}
|
#{{ end -}}
|
||||||
|
Loading…
Reference in New Issue