.bash_completion
changeset 553 50b46df6ca28
parent 552 1f489f80b389
child 577 50e17493c476
equal deleted inserted replaced
552:1f489f80b389 553:50b46df6ca28
   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