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

Re: functions/Completion/Linux/_modutils



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