mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-25 19:42:42 +03:00
build fix
This commit is contained in:
parent
6d89d7a8d0
commit
7ab3238617
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user