On Wed, Apr 23, 2008 at 06:15:35PM -0700, Konrad Meyer wrote:
I don't know if other people use this at all or not, but
something I find
incredibly useful about having sbin and friends in PATH is that I can
tab-complete many of the sbin commands I use on a regular basis. This
convenience means one of the first things I add to my .bashrc on a new
account anywhere is 'export PATH="$PATH:/sbin:/usr/sbin"'.
Having sudo look in /sbin and /usr/sbin does not address tab-completion in
bash.
Actually, it does! Rebuild the sudo RPM with the
--with-secure-path=/sbin:/usr/sbin:/bin:/usr/bin
configure option as suggested in bug #80215 [1], install the bash-completion
package, and try it out.
[1]
https://bugzilla.redhat.com/show_bug.cgi?id=80215
--
Matthew Miller mattdm(a)mattdm.org <
http://mattdm.org/>
Boston University Linux ------> <
http://linux.bu.edu/>