Skip to content

Commit

Permalink
fix(chezmoi/dot_profile): ignore .bak and .tmp files
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Aug 6, 2023
1 parent 9a6ce94 commit 8fa4c7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chezmoi/dot_profile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ export DOTFILES_VERBOSE="{{ .system.verbose }}"
# load all shell config files
if [ -d "${HOME}/.config/shrc" ]; then
for file in "${HOME}/.config/shrc"/*; do
if [[ "${file}" == *.*bak* || "${file}" == *.*tmp* ]]; then
continue
fi
if [ "${DOTFILES_VERBOSE}" = "true" ]; then
echo "* Loading shell config file: ${file}"
fi
Expand Down

0 comments on commit 8fa4c7c

Please sign in to comment.