Bash completion for upstart

Alex Smith alex at alex-smith.me.uk
Thu May 3 07:25:12 BST 2007


Michael Biebl wrote:
> 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?

Yes, I think that would be good.

-- 
Alex Smith
Frugalware Linux developer - http://www.frugalware.org



More information about the upstart-devel mailing list