Activate hping2 completion also for hping and hping3.

This commit is contained in:
Ville Skyttä 2010-06-16 20:33:43 +03:00
parent f531998576
commit f374d13516
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,9 @@ bash-completion (2.x)
[ David Paleino ] [ David Paleino ]
* Start work on 2.0 * Start work on 2.0
[ Ville Skyttä ]
* Activate hping2 completion also for hping and hping3.
-- David Paleino <d.paleino@gmail.com> Wed, 16 Jun 2010 17:53:22 +0200 -- David Paleino <d.paleino@gmail.com> Wed, 16 Jun 2010 17:53:22 +0200
bash-completion (1.2) bash-completion (1.2)

View File

@ -1,6 +1,6 @@
# bash completion for hping2 # bash completion for hping2
have hping2 && have hping || have hping2 || have hping3 &&
_hping2() _hping2()
{ {
local cur prev local cur prev
@ -44,7 +44,7 @@ _hping2()
_known_hosts_real "$cur" _known_hosts_real "$cur"
fi fi
} && } &&
complete -F _hping2 hping2 hping complete -F _hping2 hping hping2 hping3
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script