* Thoughts on git-completion
@ 2010-03-01 19:51 Tim Visher
2010-03-01 19:57 ` Shawn O. Pearce
0 siblings, 1 reply; 3+ messages in thread
From: Tim Visher @ 2010-03-01 19:51 UTC (permalink / raw)
To: Git Mailing List
Hello Everyone,
I `alias g=git` and `alias gk=gitk` on every machine that I use git on
and I have to edit the git-completion.bash script in order to get the
marvelous completion provided by that script with my aliases. Is this
something that could be rolled in to the official release or does this
rest firmly in the personal customization realm? I'm prepared to
submit a patch if you'd like.
Thoughts?
--
In Christ,
Timmy V.
http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Thoughts on git-completion
2010-03-01 19:51 Thoughts on git-completion Tim Visher
@ 2010-03-01 19:57 ` Shawn O. Pearce
2010-03-01 20:34 ` Tim Visher
0 siblings, 1 reply; 3+ messages in thread
From: Shawn O. Pearce @ 2010-03-01 19:57 UTC (permalink / raw)
To: Tim Visher; +Cc: Git Mailing List
Tim Visher <tim.visher@gmail.com> wrote:
> I `alias g=git` and `alias gk=gitk` on every machine that I use git on
> and I have to edit the git-completion.bash script in order to get the
> marvelous completion provided by that script with my aliases. Is this
> something that could be rolled in to the official release or does this
> rest firmly in the personal customization realm? I'm prepared to
> submit a patch if you'd like.
Does adding to your local script
complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null \
|| complete -o default -o nospace -F _git g
work for you? It seems to me you just need to tell bash to run
_git or _gitk when doing completion for your alias.
--
Shawn.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Thoughts on git-completion
2010-03-01 19:57 ` Shawn O. Pearce
@ 2010-03-01 20:34 ` Tim Visher
0 siblings, 0 replies; 3+ messages in thread
From: Tim Visher @ 2010-03-01 20:34 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: Git Mailing List
On Mon, Mar 1, 2010 at 2:57 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
> Tim Visher <tim.visher@gmail.com> wrote:
>> I `alias g=git` and `alias gk=gitk` on every machine that I use git on
>> and I have to edit the git-completion.bash script in order to get the
>> marvelous completion provided by that script with my aliases. Is this
>> something that could be rolled in to the official release or does this
>> rest firmly in the personal customization realm? I'm prepared to
>> submit a patch if you'd like.
>
> Does adding to your local script
>
> complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null \
> || complete -o default -o nospace -F _git g
>
> work for you? It seems to me you just need to tell bash to run
> _git or _gitk when doing completion for your alias.
The patch that I use is:
2290a2291,2295
> complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null \
> || complete -o default -o nospace -F _git g
> complete -o bashdefault -o default -o nospace -F _gitk gk 2>/dev/null \
> || complete -o default -o nospace -F _gitk gk
--
In Christ,
Timmy V.
http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-01 20:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-01 19:51 Thoughts on git-completion Tim Visher
2010-03-01 19:57 ` Shawn O. Pearce
2010-03-01 20:34 ` Tim Visher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).