changeset 569:5579d087173a

Map <c-u> in zsh to kill current line
author zegervdv <zegervdv@me.com>
date Wed, 02 Mar 2022 14:30:16 +0100
parents 91d89b637bd6
children c2cc785e1674
files dot_zshrc
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dot_zshrc	Sun Feb 27 11:49:49 2022 +0100
+++ b/dot_zshrc	Wed Mar 02 14:30:16 2022 +0100
@@ -250,8 +250,13 @@
 function zvm_after_init() {
   [ -f ~/.fzf.zsh  ] && source ~/.fzf.zsh
   bindkey '^r' histdb-fzf-widget
+
+  # Postpone current command to next prompt
   bindkey '^t' push-line-or-edit
 
+  # Cut current command into killring
+  bindkey '^u' backward-kill-line
+
   bindkey '^[[A' history-substring-search-up
   bindkey '^[[B' history-substring-search-down
   bindkey "$terminfo[kcuu1]" history-substring-search-up