Closed sitiom closed 2 years ago
Is there any actual diff to display? What's the output of chezmoi status
?
Is there any actual diff to display?
Yes there is. It just uses the normal bat
pager that I use.
$ chezmoi status
M AppData/Local/lf/lfrc
I'm not sure why this isn't working as expected. I would expect to see at least delta
run as a command in the output of chezmoi diff --debug
, but the only mention is of the config file.
I tried to duplicate this locally but in all my tests on Windows the custom diff command was invoked correctly.
Could you try running this with the latest master
branch (which includes #1904)?
If you set diff.command
to echo
or cat
(or whatever the Windows equivalent of these commands is), and re-run the command, what happens?
If you remove -NoLogo
from your $SHELL
environment variable, and re-run the command, what happens?
Could you try running this with the latest
master
branch (which includes #1904)?
Same thing.
If you set
diff.command
toecho
orcat
(or whatever the Windows equivalent of these commands is), and re-run the command, what happens?
Setting diff.command
to those values or any nonsensical value still opens my pager. Looks like my config is ignored.
If you remove
-NoLogo
from your$SHELL
environment variable, and re-run the command, what happens?
Same thing.
Setting it in .config/chezmoi/chezmoi.toml
seems to work, but I would not like to put that there. So the issue is that .chezmoidata.toml
is somehow being ignored.
Setting it in
.config/chezmoi/chezmoi.toml
seems to work, but I would not like to put that there. So the issue is that.chezmoidata.toml
is somehow being ignored.
Ah, so this is where the problem comes from. The custom diff command has to be set in chezmoi's config file. .chezmoidata.toml
contains template data, not chezmoi's config. To create ~/.config/chezmoi/chezmoi.toml
on a new machine automatically, see this entry in the user guide.
I think we can close this issue now, please re-open if needed.
Ah, that clarifies things. Thanks for your help!
Describe the bug
I'm getting an error similar to #1365 where adding
delta
asdiff
does not work.To reproduce
chezmoi diff
Expected behavior
Delta should be used as the diff tool.
Output of command with the
--debug
flagOutput of
chezmoi doctor
Additional context