From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25200 invoked from network); 2 Jun 2003 05:42:25 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 2 Jun 2003 05:42:25 -0000 Received: (qmail 4570 invoked by alias); 2 Jun 2003 05:42:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6138 Received: (qmail 4561 invoked from network); 2 Jun 2003 05:42:12 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 2 Jun 2003 05:42:12 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [207.71.22.199] by sunsite.dk (MessageWall 1.0.8) with SMTP; 2 Jun 2003 5:42:10 -0000 Received: from aspen.teratorn.org (unknown [10.0.0.7]) by oak.teratorn.org (Postfix) with ESMTP id 5118E129 for ; Wed, 28 May 2003 07:04:48 +0000 (GMT) From: Eric Mangold To: zsh-users@sunsite.dk Subject: using command aliases with sudo Date: Wed, 28 May 2003 02:04:44 -0500 User-Agent: KMail/1.5.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200305280204.44215.teratorn@world-net.net> Hi, I'm thinking of writing an extension to zsh that makes aliases work with sudo. For example, I have an alias agi="apt-get install", since this needs root I often find myself typing "sudo agi foo", which of course doesn't work. If someone has already done this or has suggestions for an implementation, please reply :) -Eric