Skip to content

Commit

Permalink
bash completion: use builtin filenames option (helix-editor#4648)
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 authored and Frederik Vestre committed Feb 6, 2023
1 parent 8a920c5 commit e0e8e89
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 e0e8e89

Please sign in to comment.