From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11378 invoked by alias); 6 Jul 2012 17:46:56 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17170 Received: (qmail 24160 invoked from network); 6 Jul 2012 17:46:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at zeitlins.org does not designate permitted sender hosts) Message-Id: Date: Fri, 6 Jul 2012 19:04:53 +0200 From: Vadim Zeitlin Subject: How to set up completion for git aliases? To: Zsh Users MIME-Version: 1.0 Content-Type: MULTIPART/SIGNED; protocol="application/pgp-signature"; micalg=pgp-sha1; BOUNDARY="690805511-41-1341594293=:1720" X-Mailer: Mahogany 0.68.0 'Cynthia', running under Windows 7 (build 7601, Service Pack 1), 64-bit edition --690805511-41-1341594293=:1720 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-Disposition: INLINE 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 --690805511-41-1341594293=:1720 Content-Type: APPLICATION/PGP-SIGNATURE -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iEYEABECAAYFAk/3GrUACgkQBupB3k9sHobzmACdHRf3ZYBe1yeEQWpNTSvDP7AI r0IAnjcteiFPLTudJaglEQAFQLqnYp0M =QPf4 -----END PGP SIGNATURE----- --690805511-41-1341594293=:1720--