dot/zshrc: Make `pound-insert' (M-#) work.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 8 Aug 2017 00:07:41 +0000 (01:07 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 8 Aug 2017 01:00:25 +0000 (02:00 +0100)
dot/zshrc

index e8657cb..3ed1bd9 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:]]##}