equal
deleted
inserted
replaced
153 esac |
153 esac |
154 return 0 |
154 return 0 |
155 } |
155 } |
156 complete -F _cygcheck cygcheck.exe cygcheck |
156 complete -F _cygcheck cygcheck.exe cygcheck |
157 |
157 |
|
158 _lighty() { |
|
159 local cur=${COMP_WORDS[COMP_CWORD]} |
|
160 local mods=( /etc/lighttpd/conf-available/*.conf ) |
|
161 mods=( ${mods[@]##*/} ) |
|
162 mods=( ${mods[@]#??-} ) |
|
163 mods=( ${mods[@]%.conf} ) |
|
164 |
|
165 COMPREPLY=( $(compgen -W '${mods[@]}' -- $cur) ) |
|
166 return 0 |
|
167 } |
|
168 |
|
169 complete -F _lighty lighty-disable-mod |
|
170 complete -F _lighty lighty-enable-mod |
|
171 |