Update .local/share/chezmoi/home/dot_local/bin/executable_provision, .local/share/chezmoi/home/.chezmoiremove, .local/share/chezmoi/home/.chezmoiignore

This commit is contained in:
Brian Zalewski 2022-12-02 05:03:37 +00:00
parent 351353646d
commit 2d13df5d32
3 changed files with 9 additions and 1 deletions

View file

@ -11,6 +11,10 @@ chezmoi.txt.age
Library
{{- end }}
{{- if ne .host.distro.id "linux" }}
dot_Xresources
{{- end }}
{{- if ne .host.distro.id "windows" }}
AppData/
{{- end }}

View file

@ -34,3 +34,7 @@ Brewfile
.zsh_sessions
.zprofile
.zshrc.zwc
{{- if ne .host.distro.id "darwin" }}
.Xresources
{{- end }}

View file

@ -181,7 +181,7 @@ fi
find /usr/local/src/hiawatha -maxdepth 1 -mindepth 1 -type d | while read FOLDER; do
BASENAME="$(basename "$FOLDER")"
# Prevent initial-scaffolding of OS-specific files since Chezmoi will handle them
if [[ "$BASENAME" != 'AppData' ]] && [[ "$BASENAME" != 'Library' ]]; then
if [[ "$BASENAME" != 'AppData' ]] && [[ "$BASENAME" != 'Library' ]] && [ "$BASENAME" != '.git' ]; then
if [ ! -d "$HOME/$BASENAME" ]; then
mkdir -p "$HOME/$BASENAME"
fi