My ~/.zshrc
:
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 dotnet bin/Debug/netcoreapp2.2/MyProg.dll
.
However, with the ~/.zshrc
I currently have, it fills in dotnet build
.
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?