Josh, were you aware of the file
tools/client-side/bash_completion
in the Subversion source tree? In the repository, that's
http://svn.collab.net/repos/svn/trunk/tools/client-side/bash_completion
Best,
-Karl Fogel
Josh Glover <josh.glover@tfcci.com> writes:
> Some of you, I suspect, might already be using bash-completion. If not,
> you might find it worth your time to check out:
>
> http://www.caliban.org/bash/
> http://www.jmglov.net/unix/bash.html
>
> bash-completion has pretty advanced completion for CVS, and I *really*
> missed it when I switched to SVN a couple of weeks ago.
>
> I found contrib/subversion in the source tarball for latest version of
> bash-completion,[1] but I wanted something a little smarter, like how
> completion for cvs(1) works currently.
>
> So, I rolled my own. But, in the spirit of Master Foo (right, Matthew?),
> and The Unix Way, I wrote a little Perl script that generates shell code
> to implement completion, using the 'svn help' command. This has the nice
> property of allowing me to automatically generate the code whenever svn
> options or subcommands change. I have attached the Perl script as well,
> just in case you are interested.
>
> Find attached a patch against bash-completion-20040711 that implements
> completion for svn(1) (Subversion).
>
> I have submitted the patch to Ian, who wrote and maintains bash-
> completion, so hopefully, it will be rolled into the main distribution
> soon. Until then, you should always be able to grab the latest version
> of the patch from:
>
> http://opensource.jmglov.net/
>
> (I know, it is not there yet, but it will be when I go home for lunch.)
>
> Cheers,
> Josh
>
>
> [1] http://www.caliban.org/files/bash/bash-completion-20040711.tar.gz
>
> --
> Josh Glover <josh.glover@tfcci.com>
>
> Software Engineer
> Twenty First Century Communications, Inc.
> http://www.tfcci.com/
>
> GPG keyID 0x22111305 (E210 61C6 14DF B480 C211 AE2A 0F12 1D7B 2211 1305)
> gpg --keyserver pgp.mit.edu --recv-keys 22111305
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 28 20:25:34 2004