Used shell in service window
Hi,
I use Webstorm on Windows and wonder if its possible to select a specific shell in which the service window runs its tasks? I normally use a Git bash and configured my terminal window in WbStrom to use it too as default. But the service window starts every task in a windows command line. Is this behaviour configurable?
Thanks
Sebastian
请先登录再写评论。
Hi Sebastian,
Can you please elaborate on the issue? What tasks are meant? A detailed problem description would be helpful.
Thanks.
I think Sebastian is referring to the commands/tasks that are executed by entries in WebStorm's Services tool window, rather than the integrated Terminal itself.
If that's the case, I’ve noticed that configuring Git Bash as the default shell for the Terminal doesn't necessarily mean that processes launched through Services will use the same shell. Those can be started through a different mechanism, so the Terminal shell setting may not apply to them.
It would be useful to know exactly which service/task is being run (for example an npm script, a package.json script, or another external command), because the way the process is launched may determine whether its shell can be configured.
If the goal is simply to have commands such as
npmscripts execute through Git Bash instead ofcmd.exe, I'd check the configuration of that particular service/run configuration rather than only the Terminal settings.The shell used for running NPM scripts can't be configured in the IDE settings. On Windows,
cmd.exeis a default shell when running NPM scripts; you can customize the shell with thescript-shellconfig.