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?
Append streama streamb to your command.
streama streamb
See: help complete
help complete
2.1m questions
2.1m answers
60 comments
57.0k users