Merge pull request #795 from baflo/master

Adds powershell profile for cmder
This commit is contained in:
Eugene 2019-05-01 15:51:59 +02:00 committed by GitHub
commit 7dc59bd5a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,17 +22,33 @@ export class CmderShellProvider extends ShellProvider {
return []
}
return [{
id: 'cmder',
name: 'Cmder',
command: 'cmd.exe',
args: [
'/k',
path.join(process.env.CMDER_ROOT, 'vendor', 'init.bat'),
],
env: {
TERM: 'cygwin',
}
}]
return [
{
id: 'cmder',
name: 'Cmder',
command: 'cmd.exe',
args: [
'/k',
path.join(process.env.CMDER_ROOT, 'vendor', 'init.bat'),
],
env: {
TERM: 'cygwin',
}
},
{
id: 'cmderps',
name: 'CmderPowerShell',
command: 'powershell.exe',
args: [
'-ExecutionPolicy',
'Bypass',
'-nologo',
'-noprofile',
'-noexit',
'-command',
`Invoke-Expression '. ''${path.join(process.env.CMDER_ROOT, 'vendor', 'profile.ps1')}'''`
]
},
]
}
}