Skip to content

Commit a7c4e0c

Browse files
pedropombeiroclaude
andcommitted
feat(update): install pre-commit hooks during system update
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 614d425 commit a7c4e0c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.config/yadm/scripts/update-common.zsh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ yadm checkout -- ~/.config/yazi/
4646
ya pkg upgrade && \
4747
printf "\n${GREEN}%s${NC}\n" "Done"
4848

49+
printf "${YELLOW}%s${NC}\n" "Installing pre-commit hooks..."
50+
yadm enter pre-commit install --install-hooks 2>/dev/null || true
51+
4952
printf "${YELLOW}%s${NC}\n" "Updating neovim plugins..."
5053
nvim --headless '+Lazy! sync' +qa && \
5154
nvim --headless "+Lazy! build firenvim" +qa && \

.config/yadm/scripts/update.sh##os.Linux,distro.qts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ printf "${YELLOW}%s${NC}\n" "Updating tmux plugins..."
2525
~/.tmux/plugins/tpm/bin/update_plugins all
2626
~/.tmux/plugins/tpm/bin/clean_plugins
2727

28+
printf "${YELLOW}%s${NC}\n" "Installing /share/Container pre-commit hooks..."
29+
(cd /share/Container && pre-commit install --install-hooks)
30+
2831
"${YADM_SCRIPTS}/update-common.zsh"

0 commit comments

Comments
 (0)