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



> 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