From 84520797ac4ac177e48fc77eea4cfcfc63865bf0 Mon Sep 17 00:00:00 2001 From: Max Hille Date: Tue, 8 Nov 2022 10:27:33 +0100 Subject: [PATCH] bash completion: use builtin filenames option Use a builtin bash option which detects filenames in completion outputs and reflects this in sensible completion behaviour. --- contrib/completion/hx.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completion/hx.bash b/contrib/completion/hx.bash index 89f3283c8257..01b42deb60cd 100644 --- a/contrib/completion/hx.bash +++ b/contrib/completion/hx.bash @@ -19,5 +19,5 @@ _hx() { COMPREPLY=($(compgen -fd -W "-h --help --tutor -V --version -v -vv -vvv --health -g --grammar --vsplit --hsplit -c --config --log" -- $2)) ;; esac -} && complete -F _hx hx +} && complete -o filenames -F _hx hx