[Bash-completion-commits] [bash-completion] 04/04: scp, sftp: Complete -S on commands

Ville Skyttä scop-guest at moszumanska.debian.org
Sat Sep 5 07:22:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit 35a0f97a5a9bb0aadf834a81761855ad65bb5e28
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Sep 5 10:22:25 2015 +0300

    scp, sftp: Complete -S on commands
---
 completions/ssh | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/completions/ssh b/completions/ssh
index 4cddfb5..f3380e7 100644
--- a/completions/ssh
+++ b/completions/ssh
@@ -244,7 +244,11 @@ _sftp()
             _ssh_ciphers
             return 0
             ;;
-        -B|-D|-l|-P|-R|-S|-s)
+        -S)
+            _command
+            return 0
+            ;;
+        -B|-D|-l|-P|-R|-s)
             return 0
             ;;
     esac
@@ -361,7 +365,7 @@ _scp()
         -l|-P)
             return 0
             ;;
-        -F|-i|-S)
+        -F|-i)
             _filedir
             compopt +o nospace
             return 0
@@ -375,6 +379,11 @@ _scp()
             _ssh_options
             return 0
             ;;
+        -S)
+            _command
+            compopt +o nospace
+            return 0
+            ;;
     esac
 
     _expand || return 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list