inherit session environment (fixes #119, fixes #125, fixes #124, fixes #129)

This commit is contained in:
Eugene Pankov 2017-07-20 23:32:17 +02:00
parent 5f5772501b
commit 49b90f15bc

View File

@ -51,7 +51,7 @@ export class ButtonProvider extends ToolbarButtonProvider {
cwd = await this.app.activeTab.session.getWorkingDirectory() cwd = await this.app.activeTab.session.getWorkingDirectory()
} }
let command = this.config.store.terminal.shell let command = this.config.store.terminal.shell
let env: any = {} let env: any = process.env
let args: string[] = [] let args: string[] = []
if (command === '~clink~') { if (command === '~clink~') {
({ command, args } = this.shells.getClinkOptions()) ({ command, args } = this.shells.getClinkOptions())