From: Mark Wooding Date: Tue, 8 Aug 2017 00:09:10 +0000 (+0100) Subject: dot/zshrc: Make M-p and M-n work properly. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/eda14eb9b457970df34c2a1e0425cdb8d8a97422?hp=c510f8b9c8bea8595423a6ce7760bdc06cd73adb dot/zshrc: Make M-p and M-n work properly. Just searching for a matching first word is silly. --- diff --git a/dot/zshrc b/dot/zshrc index e332557..e8657cb 100644 --- a/dot/zshrc +++ b/dot/zshrc @@ -64,6 +64,9 @@ bindkey "\e^l" up-case-word-shell bindkey "\ec" capitalize-word-bash bindkey "\e^c" capitalize-word-shell +bindkey "\ep" history-beginning-search-backward +bindkey "\en" history-beginning-search-forward + __mdw_delete_horizontal_space () { LBUFFER=${LBUFFER%%[[:space:]]##} RBUFFER=${RBUFFER##[[:space:]]##}