Home » Questions » Computers [ Ask a new question ]

How do I turn off or adjust the clever tab completion in Ubuntu (Programmable Completion)

How do I turn off or adjust the clever tab completion in Ubuntu (Programmable Completion)

When I am running various commands on the command line in Ubuntu and use tab-completion for files. The only files I am given are ones which have the appropriate extension for the command I am running. For example..

Asked by: Guest | Views: 368
Total answers/comments: 2
bert [Entry]

"comment out these lines in /etc/bash.bashrc (it may be in ~/.bashrc):

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

"The most elegant way to disable programmable completion should be to add:

shopt -u progcomp

to your .bashrc file. For more details, see the official documentation about the shopt command: http://www.gnudotorg/software/bash/manual/html_node/The-Shopt-Builtin.html"