Somehow I broke my Git Bash integration on VSCode (windows). When I run a new terminal, the git bash prompt shows C:/Program Files/Microsoft VS Code
instead of the correct working directory. If I cd ..
it shows the correct working directory of /c/Users/myuser
in the prompt and all seems okay from there with the prompt showing the correct path. Another weird thing is if I try cd ~
I get an error: bash: cd: $'C:\Usersmyuser': No such file or directory
. So there’s something funky going on between the expectation of home being C:\home
vs chome
. I’ve tried setting the cwd in my .bashrc file, explored every option I could find in VSCode terminal settings, i.e. setting "terminal.integrated.cwd": "${workspaceFolder}"
or anything else but no luck. Any suggestions?