From: Axel Beckert <abe@deuxchevaux.org>
To: zsh-users@zsh.org
Subject: Re: How to set up completion for git aliases?
Date: Fri, 6 Jul 2012 19:56:32 +0200 [thread overview]
Message-ID: <20120706175632.GJ30122@sym.noone.org> (raw)
In-Reply-To: <E1SnBxn-0001Wd-Kh@smtp.tt-solutions.com>
Hi,
On Fri, Jul 06, 2012 at 07:04:53PM +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?
I'm not sure if there's much necessary with stock zsh, but I use
grml's zshrc (http://grml.org/zsh/) and it works out of the box with
every freshly added alias for me. Never had to do anything.
HTH.
Kind regards, Axel
--
/~\ Plain Text Ribbon Campaign | Axel Beckert
\ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail)
X See http://www.asciiribbon.org/ | abe@noone.org (Mail+Jabber)
/ \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)
next prev parent reply other threads:[~2012-07-06 18:02 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 [this message]
2012-07-06 23:02 ` Frank Terbeck
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=20120706175632.GJ30122@sym.noone.org \
--to=abe@deuxchevaux.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).