Ramblings of Boback

Designer - Techie - Geek & Nerd

Re-enabling Sudo Complete on Ubuntu

I recently upgraded my XBMCUbuntu box to Frodo (v12) but a few things went missing. One of them was auto service/file completion after the “sudo” command. Quite frustrating.

But I found this little snippet of code to fix it.

complete -cf sudo

or you could put this in your “.bachrc”

if [ "$PS1" ]; then
complete -cf sudo
fi

Comments