1

Possible Duplicate:
Tab completion doesn't work for commands

The installed packages prompt is working fine, eg, gedtab completes to gedit, but package autocomplete on apt-get is not showing list of matching packages, like, sudo apt-get install gedtab won't try to fit ged* packages as it normally should. Similarly, quicklytab pops files and folders in the current directory instead of prompting "commands , create, etc".
Any way of correcting this? And yes, I'm on Ubuntu 12.04.

0

1 Answer 1

1

this must work

  1. Open Terminal (to start Ctrl+Alt+T)

    sudo apt-get remove bash-completion && apt-get install bash-completion

  2. Either edit the ~/.bash_profile file to enable it only for a given user or edit /etc/profile to add it system-wide(using gedit). Add the following code:

    if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
    fi

taken from http://www.howtoforge.com/how-to-add-bash-completion-in-debian

2
  • had to put the line in /etc/bash.bashrc, and worked, Thanks :)
    – Five
    Jul 28, 2012 at 11:06
  • @piyush youre welcome....!
    – hingev
    Jul 28, 2012 at 11:09

Not the answer you're looking for? Browse other questions tagged .