Git-Bash shortcut to run command

You can modify the shortcut with:

 bash.exe --init-file <(echo "ls; pwd")

If you want git-bash, and in order to avoid git-bash to just open and close a Windows immediately after executing those commands, you would execute (or modify the shortcut):

C:\Development\Git\git-bash.exe -c "ls; $SHELL"

That way, the shell remains in place after executing the first commands you want.


As noted in Baker's comment

In Windows 10/11 the shortcut target is particular about quotes.
This format seems to work:

"C:\Program Files\Git\git-bash.exe" -c "emulator -avd Pixel3a -writable-system; $SHELL"