Control: reassign -1 bash-completion

> It would be nice if "service <tab><tab><tab>" would show all acceptable
> names so that one doesn't have to remember if it was e.g.  "mysql" or
> "mysql-server".  I guess it's pretty easily done with bash_completion but
> I have no clue how such scripts are made.

There is already support for this in the core
/usr/share/bash-completion/bash_completion script.  And it works for me.

> Note that service(8) also supports upstart and systemd, so you have to
> take care of that when designing a completion function.

That's a good point; the current bash_completion only handles sysvinit
scripts.  Maybe it should be extended?  (But I'm not sure if that's on topic
for this bug report, or if a separate one should be filed.)

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
[email protected]                                     [email protected]

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel

Reply via email to