mirror of
https://github.com/ION606/web-to-fish.git
synced 2026-05-14 18:36:53 +00:00
te
This commit is contained in:
@@ -86,7 +86,7 @@ app.get('/logout', (req, res) => {
|
||||
// when a websocket is opened at /shell-ws, spawn a fish shell in a pty
|
||||
app.ws('/shell-ws', (ws, req) => {
|
||||
// spawn a fish shell using node-pty with a pseudo-terminal
|
||||
const shell = spawn('fish', [], {
|
||||
const shell = spawn('su', ['-', '/usr/bin/fish', '-s', 'fish'], {
|
||||
cols: 80,
|
||||
rows: 24,
|
||||
cwd: process.env.HOME,
|
||||
|
||||
Reference in New Issue
Block a user