MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / runShellDirect

Method runShellDirect

src/utils/terminalPanel.ts:182–190  ·  view source on GitHub ↗

Fallback when tmux is not available — runs a non-persistent shell.

()

Source from the content-addressed store, hash-verified

180
181 /** Fallback when tmux is not available — runs a non-persistent shell. */
182 private runShellDirect(): void {
183 const shell = process.env.SHELL || '/bin/bash'
184 const cwd = pwd()
185 spawnSync(shell, ['-i', '-l'], {
186 stdio: 'inherit',
187 cwd,
188 env: process.env,
189 })
190 }
191}

Callers 1

showShellMethod · 0.95

Calls 1

pwdFunction · 0.85

Tested by

no test coverage detected