Currently, I have the following in my .zshrc:
bindkey '^[[A' up-line-or-search bindkey '^[[B' down-line-or-search
However, this only seems to match the content of my current input before a space character occurs. For example,
sudo ls / will match every line in my history that begins with
sudo, while I would like it to only match lines that match my entire input. (i.e.
sudo ls /etc would match, but not
sudo cat /var/log/messages)
What do I need to change in order to gain the desired behavior?
Here is my entire .zshrc in case it is relevant: https://gist.github.com/919566