mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-24 20:38:01 +00:00
Handle multiple arguments in custom shell
This commit is contained in:
@@ -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),
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user