diff dot_zshrc @ 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 edace2b7e913
children 77280c499124
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