From 67435f463440b4d1dd098bf7aa7c3c5655b528c5 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 5 Mar 2015 12:08:52 -0800 Subject: [PATCH] further annoyance --- home/zshrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/home/zshrc b/home/zshrc index 162640f..540baf0 100644 --- a/home/zshrc +++ b/home/zshrc @@ -93,8 +93,14 @@ dirview() { for x (dirprev dirnext dirup dirview) zle -N $x bindkey -e # emacs-style keybinds -bindkey '^[[A' history-search-backward # up -bindkey '^[[B' history-search-forward # down + +# oh thank god: http://blog.samsonis.me/2013/12/bash-like-history-search-functionality-for-zsh/ +autoload history-search-end +zle -N history-beginning-search-backward-end history-search-end +zle -N history-beginning-search-forward-end history-search-end +bindkey '^[[A' history-beginning-search-backward-end # up +bindkey '^[[B' history-beginning-search-forward-end # down + bindkey ';5D' emacs-backward-word # ctrl+left bindkey ';5C' emacs-forward-word # ctrl+right bindkey ';3D' dirprev # alt+left