chiark / gitweb /
dot/zshrc: Add in Bash-style completion-type override bindings.
[profile] / dot / zshrc
index 34ddcf58c2fb4b9b61660bf655d6027d06b6b6db..9cc436baeb8ad7bcbf19cba81a5f15f7dd2fbb65 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