(shell: string)
| 62 | } |
| 63 | |
| 64 | export function isNushell(shell: string) { |
| 65 | const name = basename(shell).toLowerCase() |
| 66 | const raw = shell.toLowerCase() |
| 67 | return name === "nu" || name === "nu.exe" || raw.endsWith("\\nu.exe") |
| 68 | } |
| 69 | |
| 70 | export function loadShellEnv(shell: string, logger: ShellEnvLogger) { |
| 71 | if (isNushell(shell)) { |
no outgoing calls
no test coverage detected