Announcement

Collapse
No announcement yet.

Problems with bash auto-complete "RESOLVED!!"

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problems with bash auto-complete "RESOLVED!!"

    I am having problems getting bash to auto-compete for instance.

    sudo apt-get install linux-headers-{tab}{tab}

    I should get a list of all the linux-header packages.

    This feature does work with Kubunto Dapper 6.06.

    I recently update Breezy to Dapper and this bash feature still dose not work.

    Help.

    Thanks in advance.

    #2
    Re: Problems with bash auto-complete

    Hi,

    are you sure it's working in dapper ? For me it's normal not to get this working as you have to check what you want to install...
    You should first look after the linux-headers you want :
    uname -a
    apt-cache search linux-headers
    and then install the one for you...

    Cheers

    Comment


      #3
      Re: Problems with bash auto-complete

      Current kernel
      2.6.15-21-k7

      I have another PC that I installed Dapper flight 5 on and it works fine.

      if I use the zsh shell it works but it doesn't keep the history of all the previous commands.

      Comment


        #4
        Re: Problems with bash auto-complete

        Problem resolved.

        In Breezy by default the auto completion is disabled. Here is how to fix it.

        Make sure that auto-complete is on in your profile by checking that the following section in your .bashrc file is uncommented:

        sudo nano /etc/bash.bashrc

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

        And your auto-completion should start working again.

        A big THANKS to Michele Neylon http://www.mneylon.com/blog/archives...tion-on-breezy

        Comment


          #5
          Re: Problems with bash auto-complete "RESOLVED!!"

          Hi,

          You're right sorry, I didn't know that apt-get can autocomplete.... really nice.
          In fact, I thought that sudo doesn't allow this, but by changing this in /etc/bash.bashrc, you're enabling it.
          Nice tip

          Comment

          Working...
          X