From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15414 invoked from network); 2 Jun 2003 06:23:50 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 2 Jun 2003 06:23:50 -0000 Received: (qmail 11009 invoked by alias); 2 Jun 2003 06:23:39 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6140 Received: (qmail 11002 invoked from network); 2 Jun 2003 06:23:39 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 2 Jun 2003 06:23:39 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [129.13.64.98] by sunsite.dk (MessageWall 1.0.8) with SMTP; 2 Jun 2003 6:23:39 -0000 Received: from nce2.hadiko.de (hadince2.hadiko.uni-karlsruhe.de [172.20.32.2]) by mailhost.rz.uni-karlsruhe.de with esmtp (Exim 3.36 #1) id 19MijK-0002AY-00 for zsh-users@sunsite.dk; Mon, 02 Jun 2003 08:23:38 +0200 Received: from f311.hadiko.de (foobar@hadif311.hadiko.uni-karlsruhe.de [172.20.42.167]) by nce2.hadiko.de (8.12.3/8.12.3/Debian-6.3) with ESMTP id h526Nb8V010283 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 2 Jun 2003 08:23:38 +0200 Received: from caphuso by f311.hadiko.de with local (Exim 4.20) id 19MijJ-0004tZ-NI for zsh-users@sunsite.dk; Mon, 02 Jun 2003 08:23:37 +0200 Date: Mon, 2 Jun 2003 08:23:37 +0200 From: Stephen Rueger To: zsh-users@sunsite.dk Subject: Re: using command aliases with sudo Message-ID: <20030602062337.GA18774@rechnerpost.org> Mail-Followup-To: zsh-users@sunsite.dk References: <200305280204.44215.teratorn@world-net.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <200305280204.44215.teratorn@world-net.net> X-seti: 1007 User-Agent: Mutt/1.5.4i Sender: --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 28, 2003 at 02:04:44AM -0500, Eric Mangold wrote: > I'm thinking of writing an extension to zsh that makes aliases work > with sudo. >=20 > For example, I have an alias agi=3D"apt-get install", since this needs ro= ot I=20 > often find myself typing "sudo agi foo", which of course doesn't work. >=20 > If someone has already done this or has suggestions for an implementation= ,=20 > please reply :) You can use a global alias (alias -g) -- Stephen R=FCger --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+2u1pXPS3WpNM2wERAmhyAKC18ZPW4rrekiYWgFggA/YToEzcrgCbB5At XTNoFIAadwUxJk0VljBSre0= =mwNC -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--