Use bash parameter expansion. by Montana · Pull Request #1105 · smallstep/cli
Hey @Montana 👋. Thanks for submitting the PR! I'm really sorry it's taken so long for me to get around to testing :[
That said, I have tested on my local and I'm not sure it's working as intended. When I type step ca provisioner (no space at the end) and then hit <tab><tab> I get garbled output. I'm just using step ca provisioner as an example here, because this happens with any command.
If I try the same thing with the existing bash_completion script I get the intended output (listing the currently available commands - in this case just provisioner, since I haven't completed that word).
Let me know if I'm doing something wrong. As my username reflects, I can be pretty thick skulled at times.