2

I have a local script called bpython, and my zsh won't complete any pathnames after that. I can see that there is a _bpython completion script in my $_comps which I assume is built-in. How can I remove that or override it to treat it as a generic command? I'm not using oh-my-zsh or any fancy plugins.

3

Just remove it from _comps. That's where the completion system finds how to complete the arguments of commands.

unset '_comps[bpython]'

Do this after the code that sets up completion (compinit and all that).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.