From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18879 invoked by alias); 8 Jun 2010 16:00:55 -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: 15109 Received: (qmail 14161 invoked from network); 8 Jun 2010 16:00:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at altlinux.org does not designate permitted sender hosts) Date: Tue, 8 Jun 2010 20:00:55 +0400 From: "Alexey I. Froloff" To: zsh-users@zsh.org Subject: Re: Is there a kind of function factory in zsh? Message-ID: <20100608160055.GA28193@altlinux.org> References: <4C0E612E.8060604@googlemail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: <4C0E612E.8060604@googlemail.com> User-Agent: Mutt/1.5.20 (2009-12-10) --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 08, 2010 at 05:26:38PM +0200, Leander Jedamus wrote: > How can I avoid writing all that code again and again? Try precmd() function. man zshall -> SPECIAL FUNCTIONS -> Hook Functions. --=20 Regards, -- Sir Raorn. --- http://thousandsofhate.blogspot.com/ --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkwOaSsACgkQVqT7+fkT8wrfoQCg3V/2+qtkxYGKiTqumDjvqzmd TkcAn26+d37AgZlsOUNGJ6sKOceE7x98 =3e30 -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--