15 lines · 379 B · TypeScript
RawDownload
import { readPathFromLoginShell } from "@t3tools/shared/shell"; export function fixPath(): void {  if (process.platform !== "darwin") return;   try {    const shell = process.env.SHELL ?? "/bin/zsh";    const result = readPathFromLoginShell(shell);    if (result) {      process.env.PATH = result;    }  } catch {    // Keep inherited PATH if shell lookup fails.  }}