summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zshrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index a47b85e..e0b6517 100644
--- a/.zshrc
+++ b/.zshrc
@@ -113,6 +113,14 @@ bindkey "^[OB" history-beginning-search-forward
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
+backward-kill-dir () {
+ local WORDCHARS=${WORDCHARS/\/}
+ zle backward-kill-word
+ }
+zle -N backward-kill-dir
+# alt + backspace
+bindkey '^[^?' backward-kill-dir
+
# HOWTO make your own:
# bindkey '<crtl+v key>' action
# for some actions run `bindkey`