svent / sift

A fast and powerful alternative to grep
https://sift-tool.org
GNU General Public License v3.0
1.6k stars 108 forks source link

Feature Request: bash completion #75

Closed robEllenberg closed 7 years ago

robEllenberg commented 8 years ago

It would be nice to be able to complete options and arguments as with grep. The help listing is handy for looking up options / usages, but it would speed up typing to be able to directly complete them.

svent commented 7 years ago

The repository now contains a bash completion script: https://github.com/svent/sift/blob/master/sift-completion.bash The script uses sift to parse its own options and supported types instead of hard-coding them, so the completion script should work with upcoming versions of sift without the need to update the bash completion script itself.

yermulnik commented 10 months ago

@svent FYI: https://github.com/Homebrew/homebrew-core/pull/153762