Closed brokosz closed 2 years ago
What happens if you type type _init_completion
in your shell?
Do you know what _init_completion
and _get_comp_words_by_ref
actually do (or in other words, can you explain what your change does)? Unfortunately I know bash completion files only very superficially.
You probably know more about bash completion than I do. 😁 Turns out I was on an old bash-completions package (and why _init_completion
didn't work for me) so i'll close this issue. Fwiw - looks like the functions are pretty well documented in here: https://github.com/scop/bash-completion/blob/master/bash_completion#L339
tealdeer 1.5.0 installed via homebrew on bash 5.1.16(1) gives the above error when trying to autocomplete. I was able to work around this by changing lines 5 & 6 in the bash completion file from:
To: