How to get tab completion in bash if its not working by default

In Debian Squeeze bash doesn’t support tab completion in terminal by default…this can be accomplished by a small hack…first we need to edit a file..vim /etc/bash.bashrc

By deafult these lines will be commented uncomment them by removing the #

# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ]; then
#    . /etc/bash_completion
#fi

Save the file after done withyour editing do a restart…now the bash support tab completion………

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s