bash completion: use builtin filenames option (#4648)
Use a builtin bash option which detects filenames in completion outputs
and reflects this in sensible <tab> completion behaviour.
commit64359f8b484062e8c17b02fd2b2d690bb5bdfbd7
authorMax Hille <mh@lambdasoup.com>
dateTue 8 Nov 2022, 14:50 (4 years ago)
parentbb303cf
contrib/completion/hx.bash+1−1
@@ -19,5 +19,5 @@ _hx() {
1919 COMPREPLY=($(compgen -fd -W "-h --help --tutor -V --version -v -vv -vvv --health -g --grammar --vsplit --hsplit -c --config --log" -- $2))
2020 ;;
2121 esac
22−} && complete -F _hx hx
22+} && complete -o filenames -F _hx hx
2323