From: Bernhard Tittelbach Date: Wed, 20 Jul 2011 17:13:45 +0000 (+0200) Subject: zshrc: keybinding Alt-Delete kills current/right word X-Git-Tag: v0.4.00~20 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=1c9a325d3905252c08adab1f36c964a7f48f091f;p=grml-etc-core.git zshrc: keybinding Alt-Delete kills current/right word --- 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