]> CyberLeo.Net >> Repos - CDN/bash-config.git/blob - bash-completions/service
FreeBSD moved bash-completion to /usr/local/share; follow it
[CDN/bash-config.git] / bash-completions / 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