bash completion

TK Soh teekaysoh at yahoo.com
Wed Aug 17 19:22:24 CDT 2005


--- "Alexis S. L. Carvalho" <alexis at cecm.usp.br> wrote:
> Hi
> 
> Attached is a file that implements bash completion for hg.  Just
> reading it from your .bashrc should be enough to use it - I think: I'm
> using the /etc/bash_completion from debian and I'm not sure whether it
> sets some important option.
> 
> It gets the list of commands, aliases and options from the output of hg
> help and then adds some specific stuff - e.g. completing update with
> tags; pull and push with path aliases and directories, etc.
> 
> Matt: if you want to include this in contrib, go ahead.
> 
> Comments are welcome.

Great stuff! But it break a little when I use it on Solaris 2.6 with the
stocked sed. Attached is the patch to fix it.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: non-gnu-sed.patch
Type: application/octet-stream
Size: 811 bytes
Desc: 3758681234-non-gnu-sed.patch
Url : http://www.selenic.com/pipermail/mercurial/attachments/20050817/26152800/non-gnu-sed.obj


More information about the Mercurial mailing list