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

Support environment variables inside shellPath

Open Ash258 opened this issue 5 years ago • 1 comments

I would like to be able to setup shellpath using ${env:SOMEKEY}\\executable.exe same as in tasks.json.

My settings are synced across multiple devices and on one machine i have git bash in C drive and on other machine in S drive.

So instead of this:

{
	"terminals.terminals": [
		{
			"name": "Git Bash",
			"shellPath": "C:\\SCOOP\\apps\\git\\current\\bin\\bash.exe",
			"focus": true,
			"open": true,
		}
}

i would need to setup it like this:

{
	"terminals.terminals": [
		{
			"name": "Git Bash",
			"shellPath": "${env:GIT_INSTALL_ROOT}\\bin\\bash.exe",
			"focus": true,
			"open": true,
		}
}

Ash258 avatar Apr 19 '19 13:04 Ash258

PR welcome for implementing the [env:*] token 👍.

fabiospampinato avatar Apr 19 '19 13:04 fabiospampinato