How do you define the same autocomplete for multiple programs?

Viewed 20

I have the following line in my ~/.bashrc.

complete -W '$(cat $HOME/.config/autocomplete.list1 $HOME/.config/autocomplete.list2)' stream

I wasn't to use the same for another program called streama and streamb. Is there a better way than typing the same definition two more times?

1 Answers

Append streama streamb to your command.

See: help complete

Related