This can easily be solved by looking into the Arch Wiki:
It is useful to have the auto-complete feature (pressing the Tab key twice on the keyboard) after you type some command like
sudo.
To do this, add line(s) in this format to your
~/.bashrcfile:
complete -cf your_command
For example, to enable auto-complete after
sudoandman:
complete -cf sudo complete -cf man