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:
parent
ad8dc8a7c9
commit
ba841ced8b
@ -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[]> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user