From af8517d9155ef48619d10fc6e66cf0600f7d6ea6 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 8 Dec 2018 12:51:10 +0000 Subject: [PATCH] dot/zshrc: Add in Bash-style completion-type override bindings. 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dot/zshrc b/dot/zshrc index 34ddcf5..9cc436b 100644 --- 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 -- 2.11.0