ssh: Add -Q argument completion

This commit is contained in:
Ville Skyttä 2015-06-28 23:54:31 +03:00
parent d01427df59
commit b6ffe261f8

View File

@ -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