Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: using command aliases with sudo
- X-seq: zsh-users 6140
- From: Stephen Rueger <stephen.rueger@xxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: using command aliases with sudo
- Date: Mon, 2 Jun 2003 08:23:37 +0200
- In-reply-to: <200305280204.44215.teratorn@xxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200305280204.44215.teratorn@xxxxxxxxxxxxx>
- Sender: <stephen.rueger@xxxxxxxxxxxxxxx>
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.
>
> 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 :)
You can use a global alias (alias -g)
--
Stephen Rüger
Attachment:
pgpQNrFYMOmqt.pgp
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author