Fedora with sudo bash completion

By default Fedora does not enable sudo access for any user (other than root). Most administration tasks require the root password, however it’s simple to add your user to the sudoers file and run commands as root. Great.

However, one thing which is annoying is lack of bash completion support when running the sudo command. I like using tab completion, however if I preface anything with the sudo command, it doesn’t work.

It’s easily solved by running the following as your user:
complete -cf sudo

Yay!

From Fedora 11 onwards, both /sbin and /usr/sbin are in the user’s path by default.

0 Responses to “Fedora with sudo bash completion”


  • No Comments

Leave a Reply