Closed caseycronyn closed 4 months ago
Per https://www.chezmoi.io/reference/commands/cd/:
Launch a shell in the working tree (typically the source directory). chezmoi will launch the command set by the
cd.command
configuration variable with any extra arguments specified bycd.args
. If this is not set, chezmoi will attempt to detect your shell and finally fall back to an OS-specific default.
Per your chezmoi doctor
output:
...
ok cd-command found C:/WINDOWS/system32/cmd.exe
ok cd-args 'C:\\WINDOWS\\system32\\cmd.exe'
...
ok shell-command found C:/WINDOWS/system32/cmd.exe
ok shell-args 'C:\\WINDOWS\\system32\\cmd.exe'
...
Thanks so much for the timely and valued help on this, I've got it working.
Here's my chezmoi.json configuration file in case it helps anyone:
{
"cd": {
"command": "C:\\Program Files\\Git\\bin\\bash.exe"
}
}
What exactly are you trying to do?
Execute 'chezmoi cd' and remain in bash in windows terminal
What have you tried so far?
Have tried the same thing in the git bash terminal. Here there's no problem
Where else have you checked for solutions?
Output of any commands you've tried with
--verbose
flagOutput of
chezmoi doctor
Additional context
Add any other context about the problem here.