[Bash-completion-commits] [SCM] bash-completion branch, master, updated. c858043cbc58333d15be1c1750ef190762c4fe4c
Ville Skyttä
ville.skytta at iki.fi
Wed Jun 16 17:34:34 UTC 2010
The following commit has been merged in the master branch:
commit f374d135169324ded35cbc2babedfdd7683c1b9b
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Wed Jun 16 20:33:43 2010 +0300
Activate hping2 completion also for hping and hping3.
diff --git a/CHANGES b/CHANGES
index 803cc26..46885ea 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,9 @@ bash-completion (2.x)
[ David Paleino ]
* Start work on 2.0
+ [ Ville Skyttä ]
+ * Activate hping2 completion also for hping and hping3.
+
-- David Paleino <d.paleino at gmail.com> Wed, 16 Jun 2010 17:53:22 +0200
bash-completion (1.2)
diff --git a/contrib/hping2 b/contrib/hping2
index b1607f8..e2e6bf1 100644
--- a/contrib/hping2
+++ b/contrib/hping2
@@ -1,6 +1,6 @@
# bash completion for hping2
-have hping2 &&
+have hping || have hping2 || have hping3 &&
_hping2()
{
local cur prev
@@ -44,7 +44,7 @@ _hping2()
_known_hosts_real "$cur"
fi
} &&
-complete -F _hping2 hping2 hping
+complete -F _hping2 hping hping2 hping3
# Local variables:
# mode: shell-script
--
bash-completion
More information about the Bash-completion-commits
mailing list