Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to set up completion for git aliases?
- X-seq: zsh-users 17170
- From: Vadim Zeitlin <vz-zsh@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: How to set up completion for git aliases?
- Date: Fri, 6 Jul 2012 19:04:53 +0200
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello,
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?
Thanks in advance for any hints,
VZ
Attachment:
pgp4kvM1RGUhS.pgp
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author