48707a6901
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
14 lines
359 B
TypeScript
14 lines
359 B
TypeScript
export type SplitDirection = "-h" | "-v"
|
|
|
|
export function isInsideTmuxEnvironment(environment: Record<string, string | undefined>): boolean {
|
|
return Boolean(environment.TMUX)
|
|
}
|
|
|
|
export function isInsideTmux(): boolean {
|
|
return isInsideTmuxEnvironment(process.env)
|
|
}
|
|
|
|
export function getCurrentPaneId(): string | undefined {
|
|
return process.env.TMUX_PANE
|
|
}
|