bzr shell-complete

Marius Gedminas marius at pov.lt
Tue Feb 13 10:57:24 GMT 2007


On Tue, Feb 13, 2007 at 09:59:51AM +1100, Martin Pool wrote:
> The only bash completion I can find is this stub:
> 
>   https://lists.ubuntu.com/archives/bazaar/2005q2/000533.html
> 
> it would be good to add some, and to add tests for shell-complete at the
> same time.
> 
> Would it even be feasible to do 
> 
>    eval `bzr shell-complete --bash`
> 
> and have bzr emit all the code necessary to set up completion?  Can we
> do it inline or does the shell require a file?

I am sure you can do it inline.  I think you may have to use

    eval "`bzr shell-complete --bash`"

to make the newlines count as newlines rather than spaces.

Other programs work this way (e.g. lesspipe).

Marius Gedminas
-- 
If you are good, you will be assigned all the work.  If you are real
good, you will get out of it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070213/5ab09a13/attachment.pgp 


More information about the bazaar mailing list