feat: add custom working dir for terminal app

This commit is contained in:
Khairul Hidayat 2024-03-16 10:53:35 +07:00
parent 4dfa1decfe
commit 0f6b9d6a74

View File

@ -9,7 +9,7 @@ export const createTerminalSession = (client: TerminalClient) => {
name: "xterm-color", name: "xterm-color",
cols: 80, cols: 80,
rows: 24, rows: 24,
cwd: process.env.PWD, cwd: process.env.TERMINAL_PWD || process.env.PWD,
env: process.env, env: process.env,
}); });
client.tty = tty; client.tty = tty;