You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using any sub-command that involves showing a diff on Windows, each line of the diff is executed as if it was a command, thus showing the lines of the diff along with a bunch of errors.
To reproduce
Modify some file managed by chezmoi.
Run chezmoi diff
Expected behavior
Normal diff output.
Output of command with the --verbose flag
For this, I simple added the line '' some comments here to the _vimrc file. Then I get this output:
❯ chezmoi diff --verboseMicrosoft Windows [Version 10.0.26100.2605](c) Microsoft Corporation. All rights reserved.C:\Users\leomc\.local\share\chezmoi>diff --git a/_vimrc b/_vimrc'diff' is not recognized as an internal or external command,operable program or batch file.C:\Users\leomc\.local\share\chezmoi>index 64d96cef093061a2c6affaff35d7d9d69f1a9ddb..57fe526bc4fcd88f7fa6d4c8200cbb60f5884d58 100666'index' is not recognized as an internal or external command,operable program or batch file.C:\Users\leomc\.local\share\chezmoi>--- a/_vimrc'---' is not recognized as an internal or external command,operable program or batch file.C:\Users\leomc\.local\share\chezmoi>+++ b/_vimrc'+++' is not recognized as an internal or external command,operable program or batch file.C:\Users\leomc\.local\share\chezmoi>@@ -2,3 +2,5 @@ set number'@@' is not recognized as an internal or external command,operable program or batch file.C:\Users\leomc\.local\share\chezmoi> set relativenumberEnvironment variable relativenumber not definedC:\Users\leomc\.local\share\chezmoi> language messages en_US'language' is not recognized as an internal or external command,operable program or batch file.C:\Users\leomc\.local\share\chezmoi>C:\Users\leomc\.local\share\chezmoi>+'+' is not recognized as an internal or external command,operable program or batch file.C:\Users\leomc\.local\share\chezmoi>+'' some comments here'+''' is not recognized as an internal or external command,operable program or batch file.C:\Users\leomc\.local\share\chezmoi>
Output of chezmoi doctor
❯ chezmoi doctorRESULT CHECK MESSAGEok version v2.57.0, commit 9212b40bac1186ff393da8714579cfdc4816cc20, built at 2024-12-30T15:06:18Z, built by goreleaserok latest-version v2.57.0ok os-arch windows/amd64ok systeminfo Microsoft Windows 11 Home (10.0.26100 N/A Build 26100)ok go-version go1.23.4 (gc)ok executable ~/AppData/Local/Microsoft/WinGet/Packages/twpayne.chezmoi_Microsoft.Winget.Source_8wekyb3d8bbwe/chezmoi.exeok upgrade-method winget-upgradeok config-file ~/.config/chezmoi/chezmoi.toml, last modified 2025-01-10T17:51:30-06:00warning source-dir ~/.local/share/chezmoi is a git working tree (dirty)ok suspicious-entries no suspicious entrieswarning working-tree ~/.local/share/chezmoi is a git working tree (dirty)ok dest-dir ~ is a directoryok cd-command found C:/Program Files/PowerShell/7/pwsh.exeok cd-args 'C:\\Program Files\\PowerShell\\7\\pwsh.exe' -NoLogoinfo diff-command not setok edit-command found C:/Program Files/Neovim/bin/nvim.exeok edit-args nvimok git-command found C:/Program Files/Git/cmd/git.exe, version 2.47.1ok merge-command found C:/Program Files/Neovim/bin/nvim.exeok shell-command found C:/Windows/system32/cmd.exeok shell-args 'C:\\Windows\\system32\\cmd.exe'info age-command age not found in $PATHinfo gpg-command gpg not found in $PATHinfo pinentry-command not setok 1password-command found ~/AppData/Local/Microsoft/WinGet/Packages/AgileBits.1Password.CLI_Microsoft.Winget.Source_8wekyb3d8bbwe/op.exe, version 2.30.3info bitwarden-command bw not found in $PATHinfo bitwarden-secrets-command bws not found in $PATHinfo dashlane-command dcli not found in $PATHinfo doppler-command doppler not found in $PATHinfo gopass-command gopass not found in $PATHinfo keepassxc-command keepassxc-cli not found in $PATHinfo keepassxc-db not setinfo keeper-command keeper not found in $PATHinfo lastpass-command lpass not found in $PATHinfo pass-command pass not found in $PATHinfo passhole-command ph not found in $PATHinfo rbw-command rbw not found in $PATHinfo vault-command vault not found in $PATHinfo vlt-command vlt not found in $PATHinfo secret-command not set
Additional context
I have set pager and cd on my chezmoi config.
This only happens on Windows.
The text was updated successfully, but these errors were encountered:
It looks like bat on your computer does not do what you expect it to do. It looks like it's trying to run commands rather than run the modern clone of cat.
Describe the bug
When using any sub-command that involves showing a diff on Windows, each line of the diff is executed as if it was a command, thus showing the lines of the diff along with a bunch of errors.
To reproduce
chezmoi diff
Expected behavior
Normal diff output.
Output of command with the
--verbose
flagFor this, I simple added the line
'' some comments here
to the_vimrc
file. Then I get this output:Output of
chezmoi doctor
Additional context
I have set
pager
andcd
on my chezmoi config.This only happens on Windows.
The text was updated successfully, but these errors were encountered: