From a460ee3bb4b0b8ab7e64ded46fad57259155fc9a Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sun, 10 Jun 2018 12:57:38 -0700 Subject: [PATCH] More convenience keybindings. --- dotfiles/zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 834fc95..186171d 100755 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -46,8 +46,17 @@ typeset -U path # Keybindings bindkey '^[[A' history-search-backward bindkey '^[[B' history-search-forward +# ctrl-arrow keys bindkey '^[[1;5C' forward-word bindkey '^[[1;5D' backward-word +bindkey '^P' up-history +bindkey '^N' down-history +bindkey '^?' backward-delete-char +bindkey '^h' backward-delete-char +# ok, a few convenience bindings +bindkey '^w' backward-kill-word +bindkey '^r' history-incremental-search-backward + # Source extras and aliases if interactive if [[ $- == *i* ]] ; then