We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d30363 commit f8757d1Copy full SHA for f8757d1
share/completions/scp.fish
@@ -44,7 +44,7 @@ complete -c scp -d "Local Path" -n "not string match @ -- (commandline -ct)"
44
45
# Remote path
46
# Get the list of remote files from the scp target.
47
-string match -rq 'OpenSSH_(?<major>\d+)\.*' -- (ssh -V 2>&1)
+string match -rq 'OpenSSH(_for_Windows)?_(?<major>\d+)\.*' -- (ssh -V 2>&1)
48
if test "$major" -ge 9
49
complete -c scp -d "Remote Path" -f -n "commandline -ct | string match -e ':'" -a "
50
(__scp_remote_target):( \
0 commit comments