Results 1 to 6 of 6

Thread: apt-get tab completion

  1. #1
    Just burned his ISO
    Join Date
    Feb 2009

    Default apt-get tab completion

    This is by request from somebody on #remote-exploit.

    By default, Debian derivatives don't tab complete "apt-get install [package]" as root. I can't figure out why this is the default behavior; tab completion works fine as other users, but only the root user can actually install the packages... Whatever.

    To get this working on BT4 (and Debian/Ubuntu), simply run this command as root in Konsole/gnome-terminal/etc.:

    echo "
    if [ -f /etc/bash_completion ]; then
     . /etc/bash_completion
    fi" >> ~/.bashrc
    This simply adds a check to add the file "/etc/bash_completion" to your .bashrc. The bash_completion file has scripts to handle tab completion on on apt-get, aptitude, and assorted other things.

    Close your console, open it back up, and enjoy tab completion.

  2. #2
    Just burned his ISO
    Join Date
    Nov 2008


    Glad to see you made a post.

  3. #3
    My life is this forum Barry's Avatar
    Join Date
    Jan 2010

    Thumbs up

    Why can't we have more first posts like this???
    Of course, if you really wanted to have some fun, go to Wal-Mart late at night and ask the greeter if they could help you find trashbags, roll of carpet, rope, quicklime, clorox and a shovel. See if they give you any strange looks. --Streaker69

  4. #4


    the code is already in the .bashrc file at the bottom, it's just commented out. But, I do agree with Barry, nice first post.

  5. #5
    Senior Member imported_spankdidly's Avatar
    Join Date
    Feb 2006


    Very cool. thanks!
    I felt like bending the bars back, and ripping out the window frames and eating them. yes, eating them! Leaping, leaping, leaping! Colonics for everyone! All right! You dumb*sses. I'm a mental patient. I'm *supposed* to act out!

  6. #6
    Moderator KMDave's Avatar
    Join Date
    Jan 2010


    Quote Originally Posted by Barry View Post
    Why can't we have more first posts like this???
    Well most don't understand regex, it's not Bug || Fixes but Bugs & Fixes.

    That means not just reporting bugs but also give the fixes to it

    Thanks for the info jbest.
    Tiocfaidh ár lá

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts