vscode-terminals icon indicating copy to clipboard operation
vscode-terminals copied to clipboard

Global command for all configured terminals

Open hannah23280 opened this issue 4 years ago • 2 comments

Rather than configure each configured terminals to execute the same shell command when it starts up, , is it possible to configure a global command such that it applies to all the configured terminals?

hannah23280 avatar Jun 16 '20 17:06 hannah23280

I don't think so, potentially support for this could be added.

fabiospampinato avatar Jun 16 '20 18:06 fabiospampinato

The reason for asking this is because for each and every configured terminals, I am trying to execute a command that set the environment variable "path" to a node.js folder where the ng and npm command line tool is located. So that in any of the terminal, I would then be able to run an angular cli command, specifically ng new command

I realize that setting this environment variable via the vscode setting terminal.integrated.shell.windows works , but when running ng new command, for some unknown reason, it is unable to detect the npm, hence unable to further proceed. But setting the env var via the terminal , the ng new is able to detect npm.

hannah23280 avatar Jun 17 '20 00:06 hannah23280