mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
Fix scp completion for WSL (with ssh.exe) (#10290)
* Fix scp completion for WSL (with ssh.exe) * Be more explicit
This commit is contained in:
parent
6d30363090
commit
f8757d154c
|
@ -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_(?<major>\d+)\.*' -- (ssh -V 2>&1)
|
||||
string match -rq 'OpenSSH(_for_Windows)?_(?<major>\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):( \
|
||||
|
|
Loading…
Reference in New Issue
Block a user