Root! Root! Root!

Matt Price matt.price at utoronto.ca
Tue Mar 15 15:34:51 UTC 2005


On Tue, Mar 15, 2005 at 12:35:07PM +1100, Cameron Hutchison wrote:
> Once upon a time Senectus . said...
> > On Mon, 14 Mar 2005 20:21:17 -0500, Xian <ulist at gs1.ubuntuforums.org> wrote:
> > > 
> > > Try this from a normal terminal session:
> > > 
> > > # sudo passwd
> > > 
> > I have to say, one of the biggest reasons I don't like using sudo is
> > that tab completion for bin files doesn't work..
> > ie 
> > sudo apt-g then hit the tab key will not complete the command.
> > unlike running the following as root:
> > apt-g then hit the tab key...
> 
> If you source /etc/bash_completion from your .bash_profile or .bashrc,
> the completion will work for sudo commands (and many other things. eg.
> try apt-get in<tab> and it will complete "install". apt-get remove <tab>
> will complete on all installed packets, etc).

ah, but sudo apt-get in<tab> will NOT work with bash completion -- at
least, it doesn't work for me (bash 3.0-10, on debian sid, not
ubuntu).  anyone know enough about bash completion rules to say
whether it's possible to write rules that would make something like
that possible?

Matt

> 
> 

-------------------------------------------
Matt Price	    matt.price at utoronto.ca
History Department, University of Toronto
(416) 978-2094
--------------------------------------------

The following addresses are for you if you're an evil spambot:
zeus at derailleur.org aardvark at derailleur.org




More information about the ubuntu-users mailing list