Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/remote/conncontroller/conncontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ func (conn *SSHConn) InstallWsh(ctx context.Context, osArchStr string) error {
}
if err != nil {
conn.Infof(ctx, "ERROR detecting client platform: %v\n", err)
return fmt.Errorf("error detecting client platform: %w", err)
}
conn.Infof(ctx, "detected remote platform os:%s arch:%s\n", clientOs, clientArch)
err = remote.CpWshToRemote(ctx, client, clientOs, clientArch)
Expand Down
4 changes: 4 additions & 0 deletions pkg/util/shellutil/shellintegration/pwsh_wavepwsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Remove-Item Env:WAVETERM_SWAPTOKEN
# Load Wave completions
wsh completion powershell | Out-String | Invoke-Expression

if ($PSVersionTable.PSVersion.Major -lt 7) {
return # skip OSC setup entirely
}

$Global:_WAVETERM_SI_FIRSTPROMPT = $true

# shell integration
Expand Down
Loading