Skip to content

Commit

Permalink
bash completion: use builtin filenames option
Browse files Browse the repository at this point in the history
Use a builtin bash option which detects filenames in completion outputs
and reflects this in sensible <tab> completion behaviour.
  • Loading branch information
maxhille committed Nov 8, 2022
1 parent 188aff0 commit 8452079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completion/hx.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8452079

Please sign in to comment.