MCPcopy Index your code
hub / github.com/anomalyco/opencode / isNushell

Function isNushell

packages/desktop/src/main/shell-env.ts:64–68  ·  view source on GitHub ↗
(shell: string)

Source from the content-addressed store, hash-verified

62}
63
64export 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
70export function loadShellEnv(shell: string, logger: ShellEnvLogger) {
71 if (isNushell(shell)) {

Callers 2

shell-env.test.tsFile · 0.90
loadShellEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected