Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#246305: zsh: completion for sudo doesn't add commands under root's path
- X-seq: zsh-workers 19844
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#246305: zsh: completion for sudo doesn't add commands under root's path
- Date: Wed, 28 Apr 2004 09:04:49 -0400
- Cc: Steve Kowalik <stevenk@xxxxxxxxxx>, 246305-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: <877jw0gzp3.wl@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <877jw0gzp3.wl@xxxxxxxxxxxxxxxxxxxxxxxxxx>
> Trying to tab complete 'sudo modprobe' never works, as modprobe is
> never added into the list of completions.
Would it be better to do something like this
(PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
; rehash; print $commands)
or glob for executable files in that path or is there a better solution?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author