Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: precommand modifiers and alias sudo="sudo "



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