chiark / gitweb /
dot/zshrc: Make M-p and M-n work properly.
[profile] / dot / zshrc
index e33255741bb6f9a22a9627ab8ee961343c6d6ac6..e8657cb4c361cfb6a440973f2bf681d6069b722b 100644 (file)
--- 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:]]##}