I used this script to set my Git Bash to start in the same folder no matter where I start it. However, I would like to not run this script on startup; i.e. revert to what happened on startup before I used this script.
The code that I used from this answer:
cd C:\specific\dir\to\open && start "" "C:\Program Files\Git\bin\sh.exe"
%let gwd = C:\specific\dir\to\open;
%sysexec(cd &gwd. && start "" "C:\Program Files\Git\bin\sh.exe" && exit);
Note: I am running this on Windows 10.
How to reproduce:
- Open Git Bash
- Run that line
- Close and reopen it.
I would like to prevent this line from running on startup. However, I do not know how to do that. Is there any way I can edit what runs on startup?
cdcommand at all. On Windows 10 with Git for Windows 2.20.1, the default behavior of the context menu option "Git Bash Here" is to open a MinGW session in the folder the context menu was initiated from. That sounds like what you want. Removing the script you're calling, using just the Git Bash defaults, is that not the behavior you see? – Lorem Ipsum May 06 '20 at 17:17