Respect PTYSHELL env variable if set

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala committed 2021-02-19 22:44:53 +02:00
1 parent 6dcf3ec668
commit 47f9bcaef0
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -105,7 +105,7 @@ export class ShellSession extends EventEmitter {
protected async getShellEnv() {
const env = JSON.parse(JSON.stringify(await shellEnv()));
const pathStr = [this.kubectlBinDir, this.helmBinDir, process.env.PATH].join(path.delimiter);
const shell = userStore.preferences.shell || process.env.SHELL;
const shell = userStore.preferences.shell || process.env.SHELL || process.env.PTYSHELL;
if(isWindows) {
env["SystemRoot"] = process.env.SystemRoot;
@@ -134,7 +134,7 @@ export class Preferences extends React.Component {
<h2>Terminal Shell</h2>
<Input
theme="round-black"
placeholder={process.env.SHELL}
placeholder={process.env.SHELL || process.env.PTYSHELL}
value={this.shell}
onChange={v => this.shell = v}
onBlur={() => preferences.shell = this.shell}