Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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)?

share|improve this question

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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