ggreer / the_silver_searcher

A code-searching tool similar to ack, but faster.
http://geoff.greer.fm/ag/
Apache License 2.0
26.15k stars 1.43k forks source link

Bash Autocomplete Depends on bash-completion Library #1067

Open sshaw opened 7 years ago

sshaw commented 7 years ago

It uses _get_cword, which is part of the bash-completion library.

jschpp commented 7 years ago

I'm not seeing the problem here. If you want to use bash autocomplete shouldn't you have the bash-completion library installed anyhow?

sshaw commented 7 years ago

If you want to use bash autocomplete shouldn't you have the bash-completion library installed anyhow?

No, an external library is not necessary. Bash has builtin commands for this.

josephholsten commented 7 years ago

@sshaw I'd love to see how much code is required to remove the dependency on bash-completion. Care to throw together a PR for us?