Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: functions/Completion/Linux/_modutils
- X-seq: zsh-workers 25031
- From: sergio <zsh@xxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: functions/Completion/Linux/_modutils
- Date: Wed, 14 May 2008 20:19:47 +0400
- In-reply-to: <080514085511.ZM11897@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <4829BF7A.20203@xxxxxxxxxxxxx> <080513201714.ZM10079@xxxxxxxxxxxxxxxxxxxxxx> <482AF445.3080909@xxxxxxxxxxxxx> <080514085511.ZM11897@xxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer wrote:
> I can't advocate breaking _modutils (and everything else, one at a time)
> for all ordinary cases, just to fix this for "sudo". So how about this?
>
> % zstyle :complete:sudo: environ \
> PATH="/sbin:/usr/sbin:$PATH" HOME="/root"
> % sudo modprobe <TAB>
Hmm.. How zsh searches command when I type 'sudo <TAB>'
It will be better to get $path from that logic.
> Of course it would be preferable if "sudo -H /tmp/foo" would export
> HOME=/tmp/foo, and if the style could be specialized to the target
> user for "sudo -u" and so on, but I'm not prepared to go that far
> overboard just now.
But it's not very difficult.. ? (:
--
sergio
Messages sorted by:
Reverse Date,
Date,
Thread,
Author