Had the completion lines on as shown above, but sudo would not complete anymore on Quantal as well as wanting a way to quickly complete known computers I connect to. I added the following to my ~/.bashrc after doing the above, but I only added what is below in my home directory's bashrc file (~/.bashrc) . . .
Originally Posted by not found
if [ "$TERM" != "dumb" ]; then
complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh
complete -W "$PATH" sudo
complete -cf sudo