Include bashcomp script for service(8) in base, snipped from manpage
[CDN/bash-config.git] / bash_completion.d / service
1 # A simple bash completion for the service(8) command, as snipped from the
2 # manpage of the same name
3
4 __service() {
5   local cur
6   cur=${COMP_WORDS[COMP_CWORD]}
7   COMPREPLY=( $( compgen -W '$( service -l )' -- $cur ) )
8   return 0
9 }
10 complete -F __service service
11