mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-04 18:39:54 +00:00
handle empty env vars - fixed #3217
This commit is contained in:
parent
2cafd97751
commit
e277c52f71
@ -167,7 +167,8 @@ export class Session extends BaseSession {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!pty) {
|
if (!pty) {
|
||||||
const env = {
|
// filter out empty env
|
||||||
|
const { '': _, ...env } = {
|
||||||
...process.env,
|
...process.env,
|
||||||
TERM: 'xterm-256color',
|
TERM: 'xterm-256color',
|
||||||
TERM_PROGRAM: 'Terminus',
|
TERM_PROGRAM: 'Terminus',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user