Closed arkdae closed 8 months ago
Hey @arkdae ,
Did you follow the instructions from https://github.com/dnaeon/clingon#bash-completions ?
Can you provide steps to reproduce your issue?
Thanks, Marin
Yes, I believe I have:
5> APP=clackman source extras/completions.bash
6> clackman bash: _init_completion: command not found
Hey @arkdae ,
Please make sure that you have the bash-completion
package installed on your system.
I've updated the instructions at https://github.com/dnaeon/clingon#bash-completions to specify that you need this package as well.
Also, I've updated the completions.bash script. Please try it out again and let know how it goes.
Thanks!
Thanks, it is working now. Sorry, I was not aware that Bash does not come with completion functionality, particularly since I do see that it completes filenames automatically.
I'm running:
The first problem I find is:
bash: _init_completion: command not found
So I delete that line since I really don't know what it is even supposed to do. And then I get:
I tried changing the line noise:
"${words[@]:0:${cword}}"
to be simply
$1
, but while it now displays the list of subcommands, it doesn't fill in one of them if I've got a unique partial match (which I assume is what bash completion is supposed to do). I suspect I need some of the magic in that line noise.