sorin-ionescu / prezto

The configuration framework for Zsh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Searching using command prefix on up array

amokfa opened this issue · comments

commented

Description

If I have following commands in my history:

echo hello
grep echo

And I type echo and press up arrow, I want the prompt to jump to the first command. But in prezto it jumps to the second grep command. How do I get the behavior I need?

  • Prezto commit: e5126604d829c9fc77faa4b0cb9642f117b62b70
  • ZSH version: 5.8.1
  • OS information: popos

This is supported in the current version of zsh-history-substring-search, by setting HISTORY_SUBSTRING_SEARCH_PREFIXED (see configuration docs).

#1957 would add support for this in prezto.

This is now supported via zstyle :prezto:module:history-substring-search.