From 7ab32386170a4a8377257be626a75f119aea34e0 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Fri, 16 Apr 2021 21:18:23 +0200 Subject: [PATCH] build fix --- terminus-terminal/src/services/sessions.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/terminus-terminal/src/services/sessions.service.ts b/terminus-terminal/src/services/sessions.service.ts index 59d48830..c57fc2ba 100644 --- a/terminus-terminal/src/services/sessions.service.ts +++ b/terminus-terminal/src/services/sessions.service.ts @@ -167,9 +167,7 @@ export class Session extends BaseSession { } if (!pty) { - // filter out empty env - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const { '': _, ...env } = { + const env = { ...process.env, TERM: 'xterm-256color', TERM_PROGRAM: 'Terminus', @@ -177,6 +175,8 @@ export class Session extends BaseSession { ...this.config.store.terminal.environment || {}, } + delete env[''] + if (process.platform === 'darwin' && !process.env.LC_ALL) { const locale = process.env.LC_CTYPE ?? 'en_US.UTF-8' Object.assign(env, {