scop / bash-completion

Programmable completion functions for bash
GNU General Public License v2.0
2.9k stars 380 forks source link

bash: _comp_initialize: command not found #1209

Closed BrandonGibbs closed 3 months ago

BrandonGibbs commented 3 months ago

When I type out a command, a space, and then push tab, I get the following message (using 'man' as an example): man bash: _comp_initialize: command not found

This happens with some commands, not all. These are some of the ones it happens with:

It doesn't happen with pip or mpv though. I ran grep _comp_initialize /usr/share/bash-completion/completions/<a command> and noticed only the commands which gave the error message referenced the '_comp_initialize' function.

up4k commented 3 months ago

Have you reloaded your shell for bash-completion to reinitialize after install/update? I just stumbled upon the same issue after upgrading bash-completion, but after reloading the shell everything works as expected.

BrandonGibbs commented 3 months ago

I reloaded and now it works. Thank you!