From: Frank Terbeck <ft@bewatermyfriend.org>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: How to set up completion for git aliases?
Date: Sat, 07 Jul 2012 01:02:43 +0200 [thread overview]
Message-ID: <87liiwtrvw.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <E1SnBxn-0001Wd-Kh@smtp.tt-solutions.com> (Vadim Zeitlin's message of "Fri, 6 Jul 2012 19:04:53 +0200")
Vadim Zeitlin wrote:
> I have a simple git alias "lg = log --oneline" and I'd like zsh to
> complete it in the same way as it already completes "git log".
> Unfortunately after spending a long time looking at
> /usr/share/zsh/functions/Completion/Unix/_git I still have no idea how am I
> supposed to do it "properly", i.e. without copying this huge file and
> hacking on it. I'm sure there must be a better way to do it but which one?
You don't need to do anything, unless you're on a quite old version of
zsh. The _git completion has support for that out of the box.
I don't remember when the feature was added exactly, but any release
within the last year should be new enough.
Gruß Frank
next prev parent reply other threads:[~2012-07-06 23:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-06 17:04 Vadim Zeitlin
2012-07-06 17:56 ` Axel Beckert
2012-07-06 23:02 ` Frank Terbeck [this message]
2012-07-07 0:52 ` Re[2]: " Vadim Zeitlin
2012-07-17 19:20 ` Axel Beckert
2012-07-17 19:54 ` Frank Terbeck
2012-11-01 0:01 ` Re[2]: " Vadim Zeitlin
2012-11-01 4:46 ` Benjamin R. Haskell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87liiwtrvw.fsf@ft.bewatermyfriend.org \
--to=ft@bewatermyfriend.org \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).