MCPcopy Create free account
hub / github.com/freecodexyz/free-code / setShellIfWindows

Function setShellIfWindows

src/utils/windowsPaths.ts:87–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 * COMSPEC is left unchanged for system process execution.
86 */
87export function setShellIfWindows(): void {
88 if (getPlatform() === 'windows') {
89 const gitBashPath = findGitBashPath()
90 process.env.SHELL = gitBashPath
91 logForDebugging(`Using bash path: "${gitBashPath}"`)
92 }
93}
94
95/**
96 * Find the path where `bash.exe` included with git-bash exists, exiting the process if not found.

Callers 1

init.tsFile · 0.85

Calls 2

getPlatformFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected