Is there a way to specify the default shell used by git alias (which is currently /bin/sh
for linux systems and /bin/zsh
for macOS)? I know that we can wrap the command with bash -c '<command script>'
but I was looking for a way to change the default.
Asked
Active
Viewed 139 times
2

Hardik Aggarwal
- 49
- 5
1 Answers
2
It is hardwired into the binary.
You can recompile with a different value:
./configure --with-shell=PATH
but see this answer: https://stackoverflow.com/a/46698535

jhnc
- 11,310
- 1
- 9
- 26