diff options
Diffstat (limited to 'share/completions/scp.fish')
-rw-r--r-- | share/completions/scp.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/scp.fish b/share/completions/scp.fish index f7e131f5..f791b8af 100644 --- a/share/completions/scp.fish +++ b/share/completions/scp.fish @@ -31,7 +31,7 @@ complete -c scp -d "Remote Path" -n "commandline -ct|sgrep -o '.*:'" -a " commandline -ct|sgrep -o '.*:' )( #Get the list of remote files from the specified ssh server - ssh -o \"BatchMode yes\" (commandline -ct|sed -ne 's/\(.*\):.*/\1/p') ls\ -dp\ (commandline -ct|sed -ne 's/.*://p')\* 2> /dev/null + ssh (commandline -c|sgrep -o '\-P [0-9]*'|tr P p) -o \"BatchMode yes\" (commandline -ct|sed -ne 's/\(.*\):.*/\1/p') ls\ -dp\ (commandline -ct|sed -ne 's/.*://p')\* 2> /dev/null ) " |