mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-03-10 17:03:28 +00:00
feat: switch to chezmoi
Signed-off-by: Ismo Vuorinen <ismo@ivuorinen.net>
This commit is contained in:
13
.chezmoihooks/pre-read-source-state.sh
Executable file
13
.chezmoihooks/pre-read-source-state.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# Pre-read-source-state hook for chezmoi
|
||||
# This runs before chezmoi reads the source state
|
||||
|
||||
set -e
|
||||
|
||||
DOTFILES="${CHEZMOI_SOURCE_DIR:-$HOME/.local/share/chezmoi}"
|
||||
|
||||
# Update git submodules if they exist
|
||||
if [ -d "$DOTFILES/.git" ]; then
|
||||
cd "$DOTFILES"
|
||||
git submodule update --init --recursive --quiet || true
|
||||
fi
|
||||
Reference in New Issue
Block a user