Skip to content

Commit

Permalink
ssh: Add -Q argument completion
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jun 28, 2015
1 parent d01427d commit b6ffe26
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions completions/ssh
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -147,6 +153,10 @@ _ssh()
_ssh_options
return 0
;;
-Q)
_ssh_queries "$1"
return 0
;;
-w)
_available_interfaces
return 0
Expand Down

0 comments on commit b6ffe26

Please sign in to comment.