From ffe4513deb05c02825bf7a365446d5bc45b34b1d Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 28 Oct 2019 21:27:39 +0100 Subject: [PATCH] [FIX][ZSH] Have C-u delete from the cursor By default, Zsh deletes the whole line when doing Ctrl+u unlike Bash which keeps what's after the cursor. --- zsh/.zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index 749632d..217ee18 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -33,6 +33,8 @@ unsetopt autocd beep extendedglob notify bindkey -e # Fix delete key not working bindkey "\e[3~" delete-char +# Fix Ctrl+u killing from the cursor instead of the whole line +bindkey \^U backward-kill-line # Completion configuration zstyle :compinstall filename '/home/ambroisie/.zshrc'