fix: small tweak to support nushell (#1943)

pull/1949/head
Aiden Cline 2025-08-14 17:54:22 -05:00 committed by GitHub
parent 766fa521ea
commit 6eaaaffcdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -1062,10 +1062,8 @@ export namespace Session {
eval "${input.command}"
`
const shell = process.env["SHELL"] ?? "bash"
const isFish = shell.includes("fish")
const args = isFish
? ["-c", script] // fish with just -c
: ["-c", "-l", script]
const supportsLoginFlag = !shell.includes("fish") && !shell.includes("nu")
const args = supportsLoginFlag ? ["-c", "-l", script] : ["-c", script]
const proc = spawn(shell, args, {
cwd: app.path.cwd,