fix: small tweak to support nushell (#1943)
This commit is contained in:
parent
766fa521ea
commit
6eaaaffcdd
1 changed files with 2 additions and 4 deletions
|
|
@ -1062,10 +1062,8 @@ export namespace Session {
|
||||||
eval "${input.command}"
|
eval "${input.command}"
|
||||||
`
|
`
|
||||||
const shell = process.env["SHELL"] ?? "bash"
|
const shell = process.env["SHELL"] ?? "bash"
|
||||||
const isFish = shell.includes("fish")
|
const supportsLoginFlag = !shell.includes("fish") && !shell.includes("nu")
|
||||||
const args = isFish
|
const args = supportsLoginFlag ? ["-c", "-l", script] : ["-c", script]
|
||||||
? ["-c", script] // fish with just -c
|
|
||||||
: ["-c", "-l", script]
|
|
||||||
|
|
||||||
const proc = spawn(shell, args, {
|
const proc = spawn(shell, args, {
|
||||||
cwd: app.path.cwd,
|
cwd: app.path.cwd,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue