diff --git a/share/completions/scp.fish b/share/completions/scp.fish index 5bb7ce036..be622157e 100644 --- a/share/completions/scp.fish +++ b/share/completions/scp.fish @@ -44,7 +44,7 @@ complete -c scp -d "Local Path" -n "not string match @ -- (commandline -ct)" # Remote path # Get the list of remote files from the scp target. -string match -rq 'OpenSSH_(?\d+)\.*' -- (ssh -V 2>&1) +string match -rq 'OpenSSH(_for_Windows)?_(?\d+)\.*' -- (ssh -V 2>&1) if test "$major" -ge 9 complete -c scp -d "Remote Path" -f -n "commandline -ct | string match -e ':'" -a " (__scp_remote_target):( \