oh-my-posh break scp/sftp on Windows+PowerShell #6912
Unanswered
QZLin
asked this question in
Troubleshoot
Replies: 2 comments 1 reply
-
|
@QZLin don't do this anymore: Invoke-Expression(@(oh-my-posh init pwsh --config="$PSScriptRoot\Lin.yaml" --print) -join "`n")Instead use the standard functionality: oh-my-posh init pwsh --config="$PSScriptRoot\Lin.yaml" | Invoke-Expression |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
So it's not a bug then🤔? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Code of Conduct
What happened?
Using oh-my-posh break scp of Win32-OpenSSH, will cause
scp.exe: Connection closedif this device is configured powershell as the default SSH shell and enabled oh-my-posh.I believe this problem occurs in recent versions. PowerShell as the default shell with the oh-my-posh theme configured on my device for a long time.
PowerShell/Win32-OpenSSH#2402
I have now configured the profile to detect whether the terminal is a virtual terminal, thereby determining whether to launch oh-my-posh to resolve this issue.
Theme
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output
Beta Was this translation helpful? Give feedback.
All reactions