Linux: Sudo Command Completion

To be able to complete the bash command within sudo environment while logged in as a common user, use the following manual…

Make sure, the bash-completion package is installed:

emerge -av bash-completion

Execute

eselect bashcomp enable base
eselect bashcomp enable gentoo

Edit ~/.bashrc file:

nano ~/.bashrc

and insert the following:

complete -cf sudo

That’s it 🙂

source

Advertisements
This entry was posted in Linux and tagged , , , . Bookmark the permalink.