aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/scp.fish
diff options
context:
space:
mode:
authorGravatar Shane Xu <xusheng0711@gmail.com>2013-11-27 23:39:52 +0800
committerGravatar Shane Xu <xusheng0711@gmail.com>2013-11-27 23:39:52 +0800
commit0e7790df8c77d8dc5ee0936ef4efa476ddbc6659 (patch)
treec2564106f7d6c8576e7de43fb211ac7ca7df9d6a /share/completions/scp.fish
parent591abd340b9085b923b9f7ffdd76ae3c2088d10e (diff)
add port information
Diffstat (limited to 'share/completions/scp.fish')
-rw-r--r--share/completions/scp.fish2
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
)
"