[Bash-completion-commits] ./current r1181: Added apache2ctl completion
David Paleino
d.paleino at gmail.com
Sun Sep 14 10:30:41 UTC 2008
------------------------------------------------------------
revno: 1181
committer: David Paleino <d.paleino at gmail.com>
branch nick: current
timestamp: Sun 2008-09-14 12:30:41 +0200
message:
Added apache2ctl completion
modified:
bash_completion
debian/changelog
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion 2008-09-07 14:27:02 +0000
+++ b/bash_completion 2008-09-14 10:30:41 +0000
@@ -9652,6 +9652,20 @@
} &&
complete -F _rrdtool rrdtool
+have apache2ctl && {
+_apache2ctl() {
+ local APWORDS
+
+ COMPREPLY=()
+ cur=`_get_cword`
+
+ APWORDS=$(apache2ctl 2>&1 | head -n1 | cut -f3 -d" " | tr "|" " ")
+
+ COMPREPLY=( $( compgen -W "$APWORDS" -- "$cur" ) )
+}
+complete -F _apache2ctl apache2ctl
+}
+
_filedir_xspec()
{
local IFS cur xspec
=== modified file 'debian/changelog'
--- a/debian/changelog 2008-09-07 14:27:02 +0000
+++ b/debian/changelog 2008-09-14 10:30:41 +0000
@@ -20,9 +20,10 @@
* Fix missing completion for "-n" and "-e" (we were using echo, now
using printf) (thanks to Morita Sho) (Closes: #498105)
* Added gksudo, gksu, kdesudo completion
+ * Added apache2ctl completion
* debian/links fixed (Closes: #494292)
- -- David Paleino <d.paleino at gmail.com> Sun, 07 Sep 2008 16:21:27 +0200
+ -- David Paleino <d.paleino at gmail.com> Sun, 14 Sep 2008 12:30:20 +0200
bash-completion (20080705) unstable; urgency=low
More information about the Bash-completion-commits
mailing list