Prefer SHELL over PTYSHELL

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-07-09 17:08:16 -04:00
1 parent ad8dc8a7c9
commit ba841ced8b
1 file changed
+2 -3
@@ -32,12 +32,11 @@ export class LocalShellSession extends ShellSession {
}
public async open() {
const env = await this.getCachedShellEnv();
const shell = env.PTYSHELL;
const shell = env.SHELL || env.PTYSHELL;
const args = await this.getShellArgs(shell);
super.open(env.PTYSHELL, args, env);
super.open(shell, args, env);
}
protected async getShellArgs(shell: string): Promise<string[]> {