Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: functions/Completion/Linux/_modutils
- X-seq: zsh-workers 25034
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: functions/Completion/Linux/_modutils
- Date: Thu, 15 May 2008 12:16:01 +0000
- In-reply-to: <080514094046.ZM11975@xxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <4829BF7A.20203@xxxxxxxxxxxxx> <080513201714.ZM10079@xxxxxxxxxxxxxxxxxxxxxx> <482AF445.3080909@xxxxxxxxxxxxx> <080514085511.ZM11897@xxxxxxxxxxxxxxxxxxxxxx> <482B1123.5050206@xxxxxxxxxxxxx> <080514094046.ZM11975@xxxxxxxxxxxxxxxxxxxxxx>
On Wed, May 14, 2008 at 09:40:46AM -0700, Bart Schaefer wrote:
> That just calls _command_names, which doesn't do anything magical at
> all; in fact I'd expect it not to find modprobe if calling modprobe
> later will fail for path reasons. The path needs to be set where I
> set it in that patch, before any completers are invoked.
Debian has been shipping this in the global zshrc, which could lead to
the situation you describe.
zstyle ':completion:*:sudo:*' command-path /usr/local/sbin /usr/local/bin \
/usr/sbin /usr/bin /sbin /bin /usr/X11R6/bin
I have all the sbins included in my $path, so I've never noticed.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author