Sample Header Ad - 728x90

zsh autocomplete without completing prompt

2 votes
2 answers
2043 views
Tried to find this answer, but could not. I am new to zsh, and I like it a lot on my Mac. I am looking for an option to set it to autocomplete, but without putting the completion in the prompt until I hit enter. For example, if I type: cd Documents/ and then press tab, it will highlight the options but ALSO add them to the prompt, so I have to either tab a ton to get to the one I want, or delete back. Here is what I mean: cd Documents/ (press tab) it shows: $ cd Documents/Apple Apple Banana Durian Orange Starfruit Tamarine But I am going through the list to get to Tamarine--I want to see the options and be able to continue to tab through them, but not have them added to my current prompt until I hit Enter. Is this possible? unsetopt automenu Gets me close, but then I cannot tab through the options. Does that make sense? Thanks!
Asked by nomeelnoj (21 rep)
Jul 2, 2017, 08:38 AM
Last activity: Jun 4, 2025, 01:03 PM