chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
eda14eb
)
dot/zshrc: Make `pound-insert' (M-#) work.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 8 Aug 2017 00:07:41 +0000
(
01:07
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 8 Aug 2017 01:00:25 +0000
(
02:00
+0100)
dot/zshrc
patch
|
blob
|
blame
|
history
diff --git
a/dot/zshrc
b/dot/zshrc
index e8657cb4c361cfb6a440973f2bf681d6069b722b..3ed1bd9b7a8873c09f39fc842bd978a40c652a81 100644
(file)
--- a/
dot/zshrc
+++ b/
dot/zshrc
@@
-67,6
+67,9
@@
bindkey "\e^c" capitalize-word-shell
bindkey "\ep" history-beginning-search-backward
bindkey "\en" history-beginning-search-forward
+setopt interactive_comments
+bindkey "\e#" pound-insert
+
__mdw_delete_horizontal_space () {
LBUFFER=${LBUFFER%%[[:space:]]##}
RBUFFER=${RBUFFER##[[:space:]]##}