1
0
mirror of https://github.com/Eugeny/tabby.git synced 2025-07-06 19:39:53 +00:00
2021-05-16 17:36:33 +02:00

58 lines
1.0 KiB
TypeScript

export interface Shell {
id: string
name?: string
command: string
args?: string[]
env: Record<string, string>
/**
* Base path to which shell's internal FS is relative
* Currently used for WSL only
*/
fsBase?: string
/**
* SVG icon
*/
icon?: string
hidden?: boolean
}
/**
* Extend to add support for more shells
*/
export abstract class ShellProvider {
abstract provide (): Promise<Shell[]>
}
export interface SessionOptions {
restoreFromPTYID?: string
name?: string
command: string
args?: string[]
cwd?: string
env?: Record<string, string>
width?: number
height?: number
pauseAfterExit?: boolean
runAsAdministrator?: boolean
}
export interface Profile {
name: string
color?: string
sessionOptions: SessionOptions
shell?: string
isBuiltin?: boolean
icon?: string
disableDynamicTitle?: boolean
}
export interface ChildProcess {
pid: number
ppid: number
command: string
}