From b6ffe261f8515d4fddb319424b87d4d38d10dd91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 28 Jun 2015 23:54:31 +0300 Subject: [PATCH] ssh: Add -Q argument completion --- completions/ssh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/completions/ssh b/completions/ssh index ebd7424a..69d1e3c1 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