Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: precommand modifiers and alias sudo="sudo "
- X-seq: zsh-users 13568
- From: Sebastian Stark <seb-zsh@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: precommand modifiers and alias sudo="sudo "
- Date: Wed, 10 Dec 2008 13:29:52 +0100
- In-reply-to: <5FE916F5-AC66-4D8C-B86F-BB7A5A41F245@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <5FE916F5-AC66-4D8C-B86F-BB7A5A41F245@xxxxxxxxxxx>
On 10.12.2008, at 13:08, Sebastian Stark wrote:
I have set up an alias sudo="sudo " that enables use of aliases with
sudo.
But now precommand modifiers like "nocorrect" or "env"* stopped
working.
p% alias mkdir
mkdir='nocorrect mkdir'
% sudo mkdir foo
sudo: nocorrect: command not found
%
Anything I can do? Or should I forget about the idea of using
aliases with sudo?
Sorry, I forgot to mention the way env failes:
It basically works, but completion does not work when you do this for
example:
% alias sudo="sudo "
% alias ls="env LANG=C ls"
sudo ls -<TAB>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author