0

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:

  1. Open Git Bash
  2. Run that line
  3. 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?

Luvexina
  • 53
  • 10

1 Answers1

1

Did you check your .bashrc? You might have a cd in there somewhere.

AbyxDev
  • 175