From aad49ca8be4627effb11a5920bab16e13db0d9e2 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Wed, 6 Apr 2016 16:15:45 +0200 Subject: [PATCH] Add zle widget to remove path components backwards --- zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zshrc b/zshrc index fd2baf2..7936b57 100644 --- a/zshrc +++ b/zshrc @@ -146,3 +146,10 @@ export PATH export FPATH alias wb="ssh -t buildd.debian.org wb" + +# remove word, not including / +function _backward_kill_default_word() { + WORDCHARS='*?_-.[]~=&;!#$%^(){}<>' zle backward-kill-word +} +zle -N backward-kill-default-word _backward_kill_default_word +bindkey -e '\e=' backward-kill-default-word -- 2.39.5