2

Currently, when I hit TAB, and there's more than one option to autocomplete, zsh will show all of them. If I hit TAB a second time, it will pick the first.

I'd like to change this to:

  1. First TAB: Do nothing if there are more than one option
  2. Second TAB: Show the list
  3. Third TAB: pick the first

Is that possible?

(Why? When I hit tab, it's usually because I think what I typed was unambiguous. If it's not, I want to stop for a second and look back before getting the list.)

In addition, how do I turn on menu-based completion (where I can choose the choices from a menu)?

0

in ~/.zshrc

unsetopt BASH_AUTO_LIST

With BASH_AUTO_LIST set, the list only appears the second time you hit tab on an ambiguous completion.

Take a look at Ambiguous completions section for more options

  • Will this work for zsh? The question was about zsh autocomplete – Michael Dorst Apr 16 at 16:55
  • Tested. This does not work for me. – Michael Dorst Apr 16 at 16:57

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.