Slow bash tab completion

7,933

I had this problem on a Debian system recently, and found the solution on Unix.se.

It was this bug, fixed by this patch.

Share:
7,933

Related videos on Youtube

Caleb Koch
Author by

Caleb Koch

Updated on September 18, 2022

Comments

  • Caleb Koch
    Caleb Koch almost 2 years

    My bash shell's tab completion is very slow, usually taking 1-2 seconds per completion. This only seems to happen when I'm using my laptop from work. Tab completion is very speedy when using my laptop from home. I've tried looking around in ~/.bashrc and /etc/bash_completion.d, but I have not found a solution as of yet.

    • Tim
      Tim almost 10 years
      Is it just a normally slow laptop? Are there lots of files in the folders you are auto completing?
    • Caleb Koch
      Caleb Koch almost 10 years
      Tim, thank you for your response. It is not normally a slow laptop. In fact, it has a 2.7GHz processor so I imagine hardware shouldn't be the issue. Also, there are usually very few files in the folders that I'm auto-completing (I'd say about a dozen or less on average).
    • that other guy
      that other guy over 9 years
      Is Alt + / snappy while Tab is slow?
    • Caleb Koch
      Caleb Koch over 9 years
      The problem randomly disappeared, otherwise I'd let you know. Thanks :)
    • nmichaels
      nmichaels over 8 years
      @thatotherguy: I'm having this very problem and Alt+/ is indeed snappy while Tab is slow. Where were you going with this?
    • that other guy
      that other guy over 8 years
      @nmichaels It just narrows the problem down to the bash-completion package, and rules out the other things suggested like slow hardware and too many files.