plugin: honor tmux disablement for interactive tmux features
This commit is contained in:
@@ -36,6 +36,7 @@ import {
|
||||
} from "../../shared"
|
||||
import { safeCreateHook } from "../../shared/safe-create-hook"
|
||||
import { sessionExists } from "../../tools"
|
||||
import { isTmuxIntegrationEnabled } from "../../create-runtime-tmux-config"
|
||||
|
||||
export type SessionHooks = {
|
||||
contextWindowMonitor: ReturnType<typeof createContextWindowMonitorHook> | null
|
||||
@@ -196,7 +197,9 @@ export function createSessionHooks(args: {
|
||||
? safeHook("non-interactive-env", () => createNonInteractiveEnvHook(ctx))
|
||||
: null
|
||||
|
||||
const interactiveBashSession = isHookEnabled("interactive-bash-session")
|
||||
const interactiveBashSession =
|
||||
isHookEnabled("interactive-bash-session") &&
|
||||
isTmuxIntegrationEnabled(pluginConfig)
|
||||
? safeHook("interactive-bash-session", () => createInteractiveBashSessionHook(ctx))
|
||||
: null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user