mgalgs / fuzzy_bash_completion

Fuzzy tab completion for bash.
94 stars 9 forks source link

Getting error: _get_comp_words_by_ref: command not found #14

Closed maep-- closed 5 years ago

maep-- commented 5 years ago

Following the setup instructions, I got this error when pressing tab: _get_comp_words_by_ref: command not found

I managed to fix it by putting source /etc/profile.d/bash_completion.sh before sourcing fuzzy_bash_completion. I'm running Debian 9.8. Maybe you could put a note about that in the readme.

mgalgs commented 5 years ago

The README did already mention bash-completion as a pre-requisite. I've added another sentence that should make it clear that you not only have to install it but also enable it as well. LMK what you think.

maep-- commented 5 years ago

Thanks. To elaborate, I wasn't aware that bash-completion needed to be explicitly activated. I thought simply having it installed was enough.

mgalgs commented 5 years ago

Yeah that's a pretty common misunderstanding with the bash-completion package... To make matters worse, some distros do automatically search for it in their system-wide rc scripts and enable it if it's installed. Sounds like Debian 9.8 doesn't do that. We can't really describe how to install and enable it on each and every distro so hopefully that subtle additional note in the README will be enough to get people unstuck...

Thanks for the report and feedback.