diff --git a/src/plugins/terminal/shellintegration.cpp b/src/plugins/terminal/shellintegration.cpp index 8cd6acd7443..cc5c50706ea 100644 --- a/src/plugins/terminal/shellintegration.cpp +++ b/src/plugins/terminal/shellintegration.cpp @@ -146,7 +146,7 @@ void ShellIntegration::prepareProcess(Utils::Process &process) CommandLine newCmd = {cmd.executable(), {"--init-file", tmpRc.nativePath()}}; if (cmd.arguments() == "-l") - newCmd.addArg("-l"); + env.set("VSCODE_SHELL_LOGIN", "1"); cmd = newCmd; } else if (cmd.executable().baseName() == "zsh") {