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.

I'm looking for a zsh option that allows me to only press enter once when the autocompletionmenu in open. The it works now I have to press enter to select an item in the menu and make it go away and then once again to actually execute the command.

Sort of like how vim's wildmenu works.

Is this possible in zsh?

share|improve this question

1 Answer 1

Add this line do your .zshrc:

bindkey -M menuselect '^M' .accept-line
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.