Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k
Source Link
Alex
  • 5.9k
  • 21
  • 68
  • 88

How to add pattern to bash completion (for unzip)?

When I type

unzip <tab>

I get a list of all files ending in .zip, which is the standard behavior of tab completion for the unzip command.

However, I also want bash completion for unzip list files which end in .udp, in addition to .zip files. How can I achieve this behavior in my local .bashrc?