setopt histignoredups autoload -U history-search-end zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-forward-end history-search-end bindkey "^[[A" history-beginning-search-backward-end bindkey "^[[B" history-beginning-search-forward-end
I want up arrow to fill the last command line that matches the command line typed so far,
dotnet build dotnet bin/Debug/netcoreapp2.2/MyProg.dll dotnet build dotnet bin<UP ARROW>
should fill in
However, with the
~/.zshrc I currently have, it fills in
Looks like it only works up to the first space.
How can I make the up arrow select the last command line that matches the command line typed so far?