adding 
    COMPREPLY+=( $( initctl list 2>/dev/null | cut -d' ' -f1 ) )

to _services() does the trick.

submitted upstream
https://alioth.debian.org/tracker/index.php?func=detail&aid=314897&group_id=100114&atid=413095


** Bug watch added: alioth.debian.org/ #314897
   http://alioth.debian.org/support/tracker.php?aid=314897

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1188897

Title:
  Completion for "service" only looks up /etc/init.d/

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1188897/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to