I have not tested it on a Mac, but at least on Windows you can choose the shell used by the terminal window in the settings menu (for example, from the cmd.exe file by default for TCC / LE).
I suspect it should be the same
File -> Settings -> Terminal -> Shell path
Refer to the IDEA documentation for the terminal plugin.
source share