[Bash-completion-commits] [bash-completion] 01/03: ssh: Add -Q argument completion

Ville Skyttä scop-guest at moszumanska.debian.org
Sun Jun 28 21:09:58 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 b6ffe261f8515d4fddb319424b87d4d38d10dd91
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Jun 28 23:54:31 2015 +0300

    ssh: Add -Q argument completion
---
 completions/ssh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/completions/ssh b/completions/ssh
index ebd7424..69d1e3c 100644
--- a/completions/ssh
+++ b/completions/ssh
@@ -1,5 +1,11 @@
 # ssh(1) completion                                        -*- shell-script -*-
 
+_ssh_queries()
+{
+    COMPREPLY+=( $( compgen -W \
+        "cipher cipher-auth mac kex key protocol-version" -- "$cur" ) )
+}
+
 _ssh_ciphers()
 {
     COMPREPLY+=( $( compgen -W '3des-cbc aes128-cbc aes192-cbc aes256-cbc
@@ -147,6 +153,10 @@ _ssh()
             _ssh_options
             return 0
             ;;
+        -Q)
+            _ssh_queries "$1"
+            return 0
+            ;;
         -w)
             _available_interfaces
             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