fabiospampinato / vscode-terminals

An extension for setting-up multiple terminals at once, or just running some commands.
MIT License
121 stars 19 forks source link

Global command for all configured terminals #46

Open hannah23280 opened 4 years ago

hannah23280 commented 4 years ago

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?

fabiospampinato commented 4 years ago

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

hannah23280 commented 4 years ago

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.