--- a/.bash_completion Sat Sep 22 09:45:29 2012 +0300
+++ b/.bash_completion Sat Sep 22 19:10:08 2012 +0300
@@ -155,3 +155,17 @@
}
complete -F _cygcheck cygcheck.exe cygcheck
+_lighty() {
+ local cur=${COMP_WORDS[COMP_CWORD]}
+ local mods=( /etc/lighttpd/conf-available/*.conf )
+ mods=( ${mods[@]##*/} )
+ mods=( ${mods[@]#??-} )
+ mods=( ${mods[@]%.conf} )
+
+ COMPREPLY=( $(compgen -W '${mods[@]}' -- $cur) )
+ return 0
+}
+
+complete -F _lighty lighty-disable-mod
+complete -F _lighty lighty-enable-mod
+