explicitly specify --login for POSIX shells

This commit is contained in:
Eugene Pankov 2017-10-20 21:44:34 +02:00
parent 11e0c36ebc
commit e81e5034b9
4 changed files with 9 additions and 4 deletions

View File

@ -33,7 +33,8 @@ export class LinuxDefaultShellProvider extends ShellProvider {
return [{ return [{
id: 'default', id: 'default',
name: 'User default', name: 'User default',
command: line.split(':')[6] command: line.split(':')[6],
args: ['--login'],
}] }]
} }
} }

View File

@ -20,7 +20,8 @@ export class MacOSDefaultShellProvider extends ShellProvider {
return [{ return [{
id: 'default', id: 'default',
name: 'User default', name: 'User default',
command: shellEntry.split(' ')[1].trim() command: shellEntry.split(' ')[1].trim(),
args: ['--login'],
}] }]
} }
} }

View File

@ -24,6 +24,7 @@ export class POSIXShellsProvider extends ShellProvider {
id: x, id: x,
name: x, name: x,
command: x, command: x,
args: ['--login'],
})) }))
} }
} }

View File

@ -15,8 +15,10 @@
"skipLibCheck": true, "skipLibCheck": true,
"lib": [ "lib": [
"dom", "dom",
"es2015", "es5",
"es7" "es6",
"es7",
"es2015"
] ]
} }
} }