Re: Custom git completion
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Jan 29, 2010, 15:11 UTC
- Message-ID
- <20100129151127.GA21821@spearce.org>
- In-Reply-To
- <9b69cfcf1001290457s6b7fad6cs5a915f16a11f5782@mail.gmail.com>
David Rhodes Clymer <david@zettazebra.com> wrote:
> Unless I read it incorrectly, the completion script included with > git-core does not make it easy for users to write completion scripts > for custom git commands. I can extend git itself by creating a command > "git-foo", and placing it in my path.
git config --global alias.foo /home/me/bin/my-git-foo
git foo will now complete correctly. No need to modify the completion code.
-- Shawn.