Commit Graph

6 Commits

Author SHA1 Message Date
Sebastian Ramacher
40fe9ced1b Remove hashbang 2023-12-08 19:21:13 +01:00
Arthur Williams
120a33d116 bash completion: autocomplete xhtml files
MuPDF supports xhtml files so let them by autocompleted too.
2021-09-05 16:39:02 -05:00
Arthur Williams
0b9571e4c1 bash completion: Allow completions to work without external functions
If bash_completion wasn't installed, _filedir wouldn't be defined which
led to all filename-based completions to error out. Specifically
autocompletion would fail when a filename was expected and when
bash_completion wasn't installed. Now we fall back to compgen -f if
_filedir fails. According to _filedir's comments, compgen doesn't
handle files with spaces well, but it is still better to complete most
files than none.
2021-09-05 16:26:14 -05:00
Sebastian Ramacher
8eaadc8d6d Also recognize PDF 2019-02-03 15:28:08 +01:00
Sebastian Ramacher
9ccad6cbc2 Fix indentation 2019-02-03 15:28:00 +01:00
Sebastian Ramacher
11da8e7c8e Include bash-completion 2018-05-22 14:05:27 +02:00