From e26c76623305cbeb7ef62c22c5dcc1bce926abfa Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Fri, 20 Sep 2024 11:55:30 -0700 Subject: [PATCH] Remove unused zsh config section --- dot_zshrc.tmpl | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 9386eae..6af33cd 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -1,19 +1,7 @@ # chezmoi:template:left-delimiter=#{{ #{{- /* vim: set filetype=zsh: */ -}} -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 - unset file -fi - -#{{- $home := .chezmoi.homeDir }} -#{{ range $file := (glob (joinPath $home ".config" "zsh" "zshrc.d" "*.zsh")) }} +#{{- $home := .chezmoi.homeDir -}} +#{{- range $file := (glob (joinPath $home ".config" "zsh" "zshrc.d" "*.zsh")) -}} source "#{{ replace $home "${HOME}" $file }}" -#{{- end }} +#{{ end -}}