Replies: 2 comments 13 replies
-
You can pull and apply in one command with I would recommend against running |
Beta Was this translation helpful? Give feedback.
-
I track changes on my prompt (via oh-my-posh) with the following code: type -t chezmoi 2>&1 >/dev/null \
&& printf "%s" "$(chezmoi status 2>/dev/null | wc -l)" "," "$(chezmoi git -- status --short | wc -l)" It shows 2 numbers. First number is the number of lines This helps me not forget if there are pending changes I have not committed yet. I'll add links to threads about this when I started figuring out how to do this best, maybe it will help. |
Beta Was this translation helpful? Give feedback.
-
I recently migrated from
yadm
, and I had a small line in my .zshrc that displayed a message in red when the repository was in a dirty state or with unsynced changes.I know that I could just change
yadm <subcommands>
withchezmoi git <subcommands>
, but is there anything else I should take into account? For example, I know that in chezmoi runningchezmoi git pull
is not enough, you have to runchezmoi apply
. Is it possible to detect when the git repository is synced butchezmoi apply
has not been run?Beta Was this translation helpful? Give feedback.
All reactions