Bash auto-complete (e.g. show options "now tomorrow never" when you press'tab' after typing "dothis")

More examples

complete -W "now tomorrow never" dothis
# ~$ dothis
# never     now       tomorrow
# press 'tab' again to auto-complete after typing 'n' or 't'
click the source code to copy