Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit de90d77

Browse files
committed
✨ Core - support shell parameters - closes #267
1 parent d5c637a commit de90d77

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/_boot.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ app.on('ready', () => {
136136
signale.pending(`Creating new terminal process on port ${settings.port || '3000'}`);
137137
tty = new Terminal({
138138
role: "server",
139-
shell: settings.shell,
139+
shell: settings.shell.split(" ")[0],
140+
params: settings.shell.split(" ").splice(1),
140141
cwd: settings.cwd,
141142
port: settings.port || 3000
142143
});

src/classes/terminal.class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class Terminal {
253253
}
254254
}, 1000);
255255

256-
this.tty = this.Pty.spawn(opts.shell || "bash", [], {
256+
this.tty = this.Pty.spawn(opts.shell || "bash", opts.params || [], {
257257
name: "xterm-color",
258258
cols: 80,
259259
rows: 24,

0 commit comments

Comments
 (0)