test(tmux): isolate tmux environment checks from process env
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
export type SplitDirection = "-h" | "-v"
|
||||
|
||||
export function isInsideTmuxEnvironment(environment: Record<string, string | undefined>): boolean {
|
||||
return Boolean(environment.TMUX)
|
||||
}
|
||||
|
||||
export function isInsideTmux(): boolean {
|
||||
return Boolean(process.env.TMUX)
|
||||
return isInsideTmuxEnvironment(process.env)
|
||||
}
|
||||
|
||||
export function getCurrentPaneId(): string | undefined {
|
||||
|
||||
Reference in New Issue
Block a user