Ubuntu 12.04 Enable auto complete/suggest with apt-get

By default auto complete/suggest is disabled in Ubuntu 12.04 version.

To enable you need to add following lines in .bashrc:

if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion

Before adding just check for above lines of code, add only if above lines not exists in .bashrc

After adding compile .barshrc with following command:

$ . .bashrc

Now test with apt-get

$ sudo apt-get install pidgin ---> press tab after typing pidgin 
you will get following suggestion
pidgin pidgin-dbg pidgin-gmchess pidgin-librvp pidgin-nateon-dbg pidgin-sipe
pidgin-audacious pidgin-dev pidgin-guifications pidgin-microblog pidgin-openfetion 
pidgin-skype pidgin-awayonlock pidgin-encryption pidgin-hotkeys 
pidgin-microblog-dbg pidgin-openpgp pidgin-skype-dbg pidgin-blinklight 
pidgin-extprefs pidgin-lastfm pidgin-mpris pidgin-otr pidgin-themes 
pidgin-bot-sentry pidgin-facebookchat pidgin-latex pidgin-musictracker 
pidgin-plugin-pack pidgin-twitter pidgin-data pidgin-festival pidgin-libnotify 
pidgin-nateon pidgin-privacy-please


By Sandeep Posted in Ubuntu

2 comments on “Ubuntu 12.04 Enable auto complete/suggest with apt-get

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