Re: Thoughts on git-completion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim Visher <tim.visher@xxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]