mirror of
https://github.com/Eugeny/tabby
synced 2024-12-14 23:32:41 +00:00
tmux fixes
This commit is contained in:
parent
1f825b16c1
commit
466d862caa
1 changed files with 4 additions and 2 deletions
|
@ -166,7 +166,9 @@ export class TMux {
|
|||
}
|
||||
|
||||
async terminate (id: string): Promise<void> {
|
||||
this.process.command(`kill-session -t ${id}`)
|
||||
this.process.command(`kill-session -t ${id}`).catch(() => {
|
||||
console.debug('Session already killed')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -203,7 +205,7 @@ export class TMuxPersistenceProvider extends SessionPersistenceProvider {
|
|||
})
|
||||
return {
|
||||
command: 'tmux',
|
||||
args: ['-L', 'terminus', 'attach-session', '-d', '-t', recoveryId],
|
||||
args: ['-L', 'terminus', 'attach-session', '-d', '-t', recoveryId, ';', 'refresh-client'],
|
||||
recoveredTruePID$: truePID$.asObservable(),
|
||||
recoveryId,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue