How do I make zsh give me the autcomplete options but not fill in the prompt line with the first result? For example, this is the behavior I'm seeing:

$ ifc{tab}
$ ifcfg
external command
ifcfg     ifconfig

I want it to display the options, but not fill in the prompt line.

Also, if I type in a valid command, but there are other valid commands that start with that, it doesn't auto complete. So


will give me just su instead of the option for sudo

  • I think the default behavior conforms to your requirement. What completion options have you set? – Gilles 'SO- stop being evil' Oct 17 '10 at 0:54
  • I copied an zshrc file from the web and I'm wondering what options cause this to be different. I can post the zshrc file if needed – Falmarri Oct 17 '10 at 0:59
unsetopt automenu

from man zshoptions:


Automatically use menu completion after the second consecutive request for completion, for example by pressing the tab key repeatedly. This option is overridden by MENU_COMPLETE.

  • So is it not possible to use menu_complete, but not make it fill in the text on the prompt line? – Falmarri Oct 18 '10 at 4:46

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.