How to Disable Bash Tab Completion

autocompletebash

Is it possible to disable bash's autocomplete on pressing tab?

The reason I want to do this is that I often paste code from an editor where I use the tab character instead of a number of spaces for indention, into my terminal.

And no, you can't convince me to use spaces instead of tabs.

Best Answer

put

 set disable-completion on

string in ~/.inputrc and restart your shell. it will disable completion at all.

Related Question