Skip to content

Commit 969e840

Browse files
committed
Finalyl pwsh fix
1 parent 0ba6bfe commit 969e840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/features/terminal/shells/pwsh/pwshStartup.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ async function isPowerShellStartupSetup(shell: string, profile: string): Promise
146146

147147
async function setupPowerShellStartup(shell: string, profile: string): Promise<boolean> {
148148
if (shellIntegrationForActiveTerminal(shell, profile)) {
149-
removePowerShellStartup(shell, profile);
149+
removePowerShellStartup(shell, profile, POWERSHELL_OLD_ENV_KEY);
150+
removePowerShellStartup(shell, profile, POWERSHELL_ENV_KEY);
150151
return true;
151152
}
152153
const activationContent = getActivationContent();

0 commit comments

Comments
 (0)