Enable AutoComplete for sudo command
When I started using the latest Ubuntu Release, Karmic Koala, I noticed that the autocomplete (or autofill) function in the command shell wasn't working, like it used to... and later on I noticed that it was only the sudo command that didn't work with "autocomplete". And even later on I found the blog of a french guy, where he explains how to enable the autocomplete function on Karmic Koala.
For those, who can't live without autocomplete, neither, here are the steps you need to follow, to enable autofill again:
Execute the following command in a command shell:
gedit ~/.bashrcAnd copy the following lines:
if [ "$PS1" ]; then
complete -cf sudo
fi
Now you'll only need to save changes, and next time you iniciate the command shell, everythings gonna work as it did last summer...








