Clearly I am missing some setting. On zsh on macOS and I tried what you just said and it doesn't work like this
FWIW I'm also on macos 15.7.9, zsh 5.9, oh-my-zsh - and I do get this behavior (TIL).
type eg "rg" then up or down arrow, and the history shown is filtered by that rg prefix.
Isn't oh-my-zsh one of those batteries-included distributions? It sounds like that's just one of the configurations that it provides.
I was missing it too. Google says it's a builtin zsh feature but mac doesn't turn it on by default, so you add these to `~/.zshrc`
bindkey '^[[A' history-search-backward bindkey '^[[B' history-search-forward
I'm not really sure what "turn it on by default" even means in the context of a shell. I've had that manually in my config for years.
FWIW I'm also on macos 15.7.9, zsh 5.9, oh-my-zsh - and I do get this behavior (TIL).
type eg "rg" then up or down arrow, and the history shown is filtered by that rg prefix.
Isn't oh-my-zsh one of those batteries-included distributions? It sounds like that's just one of the configurations that it provides.
I was missing it too. Google says it's a builtin zsh feature but mac doesn't turn it on by default, so you add these to `~/.zshrc`
So far it works. Thank you diath.I'm not really sure what "turn it on by default" even means in the context of a shell. I've had that manually in my config for years.