Not sure where the right place to put this is, as it's Linux-specific and I'm not sure how installation paths are determined in the GitHub source. Hope that's not a problem.
In short, this file will provide command-line auto-completion for gzdoom when running in a (ba)sh terminal. I built it from a template at this page. Per that page, on Debian-based platforms at least, this file (named simply "gzdoom") may be placed or softlinked into "/etc/bash_completion.d/". I've done that on my Linux Mint system and it works like a charm.
I used the wiki page on [wiki]Command line parameters[/wiki] to get the options I included, minus the Zandronum-specific section. There's probably additional possibilities which could be added, both static and context-sensitive.
Last edited by Caligari87 on Mon Jun 12, 2017 8:17 pm, edited 1 time in total.
I've discovered that the autocomplete script above doesn't work for filenames/directories, so I'm trying to figure out the appropriate fix. If anyone has any experience with bash scripting and autocompletion, help appreciated.
Got generalized directory/file completion working, updated the script in the OP. It's not as fancy as it could be (such as only allowing file autocomplete for options that accept it) but it gets the job done.