esonic / sshz

A command line tool adds sz/rz support for windows terminal in WSL
14 stars 4 forks source link

Not working for me #2

Open HZ89 opened 2 years ago

HZ89 commented 2 years ago

image

so sshz must work in windows powershell? If not, how pwoershell.exe work in ubuntu? And control+d, exit or stdin closed sshz not stop.

HZ89 commented 2 years ago

powshell command need full-path, zsh have no this in env

var powershell = "/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe"
esonic commented 2 years ago

powshell command need full-path, zsh have no this in env

var powershell = "/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe"

Is the Ubuntu running in WSL? powershell is in $PATH in WSL by default. Maybe you can manually add it to PATH.

And powershell.exe can indeed be called in WSL Ubuntu, even if you are using WSL in conhost or cmd. that's the charming part of WSL.

HZ89 commented 2 years ago

Only in bash shell you have this path in env. Many people use zsh, fish or other shell.