[Feature Request] Zsh-style Prefix Matching for Command History Navigation
Resolved 💬 5 comments Opened Oct 10, 2025 by hjkatz Closed Feb 28, 2026
Bug Description
I would love if the scrollback (up-arrow key) history completion would use prefix matching like zsh. For example, given the command history:
$ echo first
$ echo second
$ cat third
See the following cases: each is a prefix of the current chars typed into the command line, then the <UP> key is pressed, then the expected history completion:
$(none) ->$ cat third(most recent)$ echo->$ echo second(most recent prefix match)$ echo f->$ echo first$ c->$ cat third$ python->$ cat third(no match)
This would be awesome as a setting. Then, if you want to keep up-arrow for most recent completion regardless of prefix you could switch that to <shift-up> or similar with a command key.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.0.13
- Feedback ID: c68a81b5-764e-4f40-be06-4419872bffc5
Errors
[]This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗