mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-25 11:33:35 +03:00
build fix
This commit is contained in:
parent
6d89d7a8d0
commit
7ab3238617
@ -167,9 +167,7 @@ export class Session extends BaseSession {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!pty) {
|
if (!pty) {
|
||||||
// filter out empty env
|
const env = {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
const { '': _, ...env } = {
|
|
||||||
...process.env,
|
...process.env,
|
||||||
TERM: 'xterm-256color',
|
TERM: 'xterm-256color',
|
||||||
TERM_PROGRAM: 'Terminus',
|
TERM_PROGRAM: 'Terminus',
|
||||||
@ -177,6 +175,8 @@ export class Session extends BaseSession {
|
|||||||
...this.config.store.terminal.environment || {},
|
...this.config.store.terminal.environment || {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete env['']
|
||||||
|
|
||||||
if (process.platform === 'darwin' && !process.env.LC_ALL) {
|
if (process.platform === 'darwin' && !process.env.LC_ALL) {
|
||||||
const locale = process.env.LC_CTYPE ?? 'en_US.UTF-8'
|
const locale = process.env.LC_CTYPE ?? 'en_US.UTF-8'
|
||||||
Object.assign(env, {
|
Object.assign(env, {
|
||||||
|
Loading…
Reference in New Issue
Block a user