Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change script exec timing #2

Merged
merged 1 commit into from
Oct 12, 2024
Merged

Change script exec timing #2

merged 1 commit into from
Oct 12, 2024

Conversation

ko-tominaga
Copy link
Owner

@ko-tominaga ko-tominaga commented Oct 12, 2024

chezmoi diffを実行して差分を確認するだけで、パッケージインストール用のスクリプトが実行されてしまう。
スクリプトのプレフィックスをrun_onchange_ -> run_beforeに変更して、差分が適用される時に実行されるようにする。

https://www.chezmoi.io/reference/source-state-attributes/

@ko-tominaga ko-tominaga merged commit 4fb2cd8 into main Oct 12, 2024
2 checks passed
@ko-tominaga ko-tominaga deleted the change-script-exec-timing branch October 12, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant