~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c510f8b
)
dot/zshrc: Make M-p and M-n work properly.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 8 Aug 2017 00:09:10 +0000
(
01:09
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 8 Aug 2017 01:00:25 +0000
(
02:00
+0100)
Just searching for a matching first word is silly.
dot/zshrc
patch
|
blob
|
blame
|
history
diff --git
a/dot/zshrc
b/dot/zshrc
index
e332557
..
e8657cb
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:]]##}