is there a way to do this
powershell and cmd prompt are both options here, but if I had git-scm / git-bash installed, could I directly launch it with that specific folder directory I'm in?
e.g
is there a way to do this
powershell and cmd prompt are both options here, but if I had git-scm / git-bash installed, could I directly launch it with that specific folder directory I'm in?
e.g
You can run almost anything via a button or menu item.
The exact details will depend a bit on the program being run, since each program has different command line arguments or assumptions about its context.
If git-bash.exe is something you can run without any arguments and which will inherit the current directory it is run from, then this should work:
cd {sourcepath$}
"C:\Program Files\Git\git-bash.exe"
Adjust the .exe path as appropriate, of course.
(When editing the button or menu item, click the Advanced button at the bottom to go into multi-line mode, if needed. Alternatively, in simple mode, you can put {sourcepath$}
into the Start In field and the second line as a single-line command. If you then click Advanced, you'll see it turns into the same thing that is above, as the two are equivalent when there is only one line after the cd ...
line at the top.)
If the exe needs more arguments, or has to be run from an already-open Command Prompt or PowerShell window, that can also be done, but the exact details will depend on the requirements.