@@ -182,7 +182,7 @@ func StartWslShellProc(ctx context.Context, termSize waveobj.TermSize, cmdStr st
182
182
} else if wsl .IsPowershell (shellPath ) {
183
183
// powershell is weird about quoted path executables and requires an ampersand first
184
184
shellPath = "& " + shellPath
185
- subShellOpts = append (subShellOpts , "-ExecutionPolicy" , "Bypass" , "-NoExit" , "-File" , homeDir + fmt .Sprintf ("/.waveterm/%s/wavepwsh.ps1" , shellutil .PwshIntegrationDir ))
185
+ subShellOpts = append (subShellOpts , "-ExecutionPolicy" , "Bypass" , "-NoExit" , "-File" , fmt .Sprintf ("%s /.waveterm/%s/wavepwsh.ps1" , homeDir , shellutil .PwshIntegrationDir ))
186
186
} else {
187
187
if cmdOpts .Login {
188
188
subShellOpts = append (subShellOpts , "-l" )
@@ -315,7 +315,7 @@ func StartRemoteShellProc(termSize waveobj.TermSize, cmdStr string, cmdOpts Comm
315
315
} else if remote .IsPowershell (shellPath ) {
316
316
// powershell is weird about quoted path executables and requires an ampersand first
317
317
shellPath = "& " + shellPath
318
- shellOpts = append (shellOpts , "-ExecutionPolicy" , "Bypass" , "-NoExit" , "-File" , homeDir + fmt .Sprintf ("/.waveterm/%s/wavepwsh.ps1" , shellutil .PwshIntegrationDir ))
318
+ shellOpts = append (shellOpts , "-ExecutionPolicy" , "Bypass" , "-NoExit" , "-File" , fmt .Sprintf ("%s /.waveterm/%s/wavepwsh.ps1" , homeDir , shellutil .PwshIntegrationDir ))
319
319
} else {
320
320
if cmdOpts .Login {
321
321
shellOpts = append (shellOpts , "-l" )
0 commit comments