From 1c9a325d3905252c08adab1f36c964a7f48f091f Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Wed, 20 Jul 2011 19:13:45 +0200 Subject: [PATCH] zshrc: keybinding Alt-Delete kills current/right word --- etc/zsh/zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 6fa7fcb..2e7e65a 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -569,6 +569,11 @@ bindkey '\e[4~' end-of-line # end bindkey '\e[A' up-line-or-search # cursor up bindkey '\e[B' down-line-or-search # - +## alt-backspace is already the default for backwards-delete-word +## let's also set alt-delete for deleting current word (right of cursor) +#k# Delete current word +bindkey "3~" delete-word + bindkey '^xp' history-beginning-search-backward bindkey '^xP' history-beginning-search-forward # bindkey -s '^L' "|less\n" # ctrl-L pipes to less -- 2.1.4