summaryrefslogtreecommitdiff
path: root/contrib/apache2ctl
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/apache2ctl')
-rw-r--r--contrib/apache2ctl30
1 files changed, 18 insertions, 12 deletions
diff --git a/contrib/apache2ctl b/contrib/apache2ctl
index 8794b4a9..1987d245 100644
--- a/contrib/apache2ctl
+++ b/contrib/apache2ctl
@@ -1,18 +1,24 @@
-# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
-# ex: ts=8 sw=8 noet filetype=sh
-#
# apache2ctl(1) completion
-#
+
have apache2ctl && {
_apache2ctl() {
- local APWORDS
-
- COMPREPLY=()
- cur=`_get_cword`
-
- APWORDS=$(apache2ctl 2>&1 >/dev/null | head -n1 | cut -f3 -d" " | tr "|" " ")
-
- COMPREPLY=( $( compgen -W "$APWORDS" -- "$cur" ) )
+ local APWORDS
+
+ COMPREPLY=()
+ cur=`_get_cword`
+
+ APWORDS=$(apache2ctl 2>&1 >/dev/null | head -n1 | cut -f3 -d" " | \
+ tr "|" " ")
+
+ COMPREPLY=( $( compgen -W "$APWORDS" -- "$cur" ) )
}
complete -F _apache2ctl apache2ctl
}
+
+# Local variables:
+# mode: shell-script
+# sh-basic-offset: 4
+# sh-indent-comment: t
+# indent-tabs-mode: nil
+# End:
+# ex: ts=4 sw=4 et filetype=sh