bash-completion
bash-completion copied to clipboard
unrar: complete all filenames for non-first option and exclude non-first parts
unrar(1) gives a command syntax of:
unrar <command> [-<switch 1> -<switch N>] archive [files...] [path...]
Therefore, it's a bad idea to alway assume that the user is going to need RARs.