Handle multiple arguments in custom shell

This commit is contained in:
Eugene Pankov
2017-10-21 22:11:27 +02:00
committed by GitHub
parent e81e5034b9
commit e0c0cd17bd

View File

@@ -12,10 +12,12 @@ export class CustomShellProvider extends ShellProvider {
} }
async provide (): Promise<IShell[]> { async provide (): Promise<IShell[]> {
let args = this.config.store.terminal.customShell.split(' ')
return [{ return [{
id: 'custom', id: 'custom',
name: 'Custom', name: 'Custom',
command: this.config.store.terminal.customShell command: args[0],
args: args.slice(1),
}] }]
} }
} }