Julius Marmingelogging404e78a8 months agoHistory
18 lines · 451 B · TypeScript
RawDownload
import * as ChildProcess from "node:child_process"; export function fixPath(): void {  if (process.platform !== "darwin") return;   try {    const shell = process.env.SHELL ?? "/bin/zsh";    const result = ChildProcess.execFileSync(shell, ["-ilc", "echo -n $PATH"], {      encoding: "utf8",      timeout: 5000,    });    if (result) {      process.env.PATH = result;    }  } catch {    // Keep inherited PATH if shell lookup fails.  }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t