dot/zshrc: Add in Bash-style completion-type override bindings.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 8 Dec 2018 12:51:10 +0000 (12:51 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 8 Dec 2018 13:12:13 +0000 (13:12 +0000)
This dislodges the (otherwise useless anyway) previous binding of M-/ to
`_history-complete-older', which I've nudged to M-, (which was
previously the even less useful `_history-complete-newer').  As far as I
can tell, none of the other keys did anything at all previously.

dot/zshrc

index 34ddcf5..9cc436b 100644 (file)
--- a/dot/zshrc
+++ b/dot/zshrc
@@ -83,6 +83,12 @@ bindkey -s "\eOp" "0"                 "\eOn" "."; bindkey "\eOM" accept-line
 
 bindkey "\ep" history-beginning-search-backward
 bindkey "\en" history-beginning-search-forward
+bindkey "\e," _history-complete-older
+
+for i in '!' '$' '@' '/' '~'; do
+  bindkey "\e$i" _bash_complete-word
+  bindkey "^X$i" _bash_list-choices
+done
 
 setopt interactive_comments
 bindkey "\e#" pound-insert