Bash completion for upstart

Michael Biebl mbiebl at gmail.com
Thu May 3 06:41:56 BST 2007


Hi,

I wrote a tiny bash completion script for start/stop/status.
If you want to try it, copy the attached file into /etc/bash_completion.d/ and
source the file /etc/bash_completion.
You can put this into your ~/.bashrc to do that automatically:

# bash completion
. /etc/bash_completion

After that, start/stop/status <TAB> will list all jobs available in
/etc/event.d/

I could make the start/stop completion more sophisticated, and only
list the running jobs for stop and the stopped jobs for start. Do you
think this would be a good feature?

Cheers,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: upstart
Type: application/octet-stream
Size: 503 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20070503/5363f18a/attachment.obj 


More information about the upstart-devel mailing list