Bash completion not working in ubuntu 24.04

Hi

I downloaded the CLI for LInux and added this to my bashrc

source <(exercism completion bash) 

but it show this after sourcing bashrc and the auto completion isn’t working

complete: usage: complete [-abcdefgjksuv] [-pr] [-DEI] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [name …]

That seems to be the case. From what I see, its output misses the command name itself.

This fixes it:

source <(exercism completion bash | sed -e '/^\s*complete/s/$/ exercism/')

I’ll attempt a pull request, although I do not know go and do not have a go setup – so not sure how fast I will get there.

1 Like