1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Prefer SHELL over PTYSHELL

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-07-09 17:08:16 -04:00
parent ad8dc8a7c9
commit ba841ced8b

View File

@ -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[]> {