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

0

Hi Sebastian,

Can you please elaborate on the issue? What tasks are meant? A detailed problem description would be helpful.

 

Thanks.

0

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 npm scripts execute through Git Bash instead of cmd.exe, I'd check the configuration of that particular service/run configuration rather than only the Terminal settings.

0

The shell used for running NPM scripts can't be configured in the IDE settings.  On Windows, cmd.exe is a default shell when running NPM scripts; you can customize the shell with the script-shell config.

0

请先登录再写评论。