diff options
author | Florian Pritz <bluewind@xinu.at> | 2019-11-25 13:53:31 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2020-01-25 16:04:09 +0100 |
commit | 28efc78ab27e70ba55ed1f5c6a5252918f4b9c6a (patch) | |
tree | 2e252336eb01aed7aac7ca5f8f794f905829402e | |
parent | 242ed314a469f85878cbee61e443065d88cc6252 (diff) | |
download | dotfiles-28efc78ab27e70ba55ed1f5c6a5252918f4b9c6a.tar.gz dotfiles-28efc78ab27e70ba55ed1f5c6a5252918f4b9c6a.tar.xz |
zshrc: Add kill-dir hotkey
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | .zshrc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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` |