[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.
This commit is contained in:
parent
bccda57c46
commit
ffe4513deb
|
@ -33,6 +33,8 @@ unsetopt autocd beep extendedglob notify
|
||||||
bindkey -e
|
bindkey -e
|
||||||
# Fix delete key not working
|
# Fix delete key not working
|
||||||
bindkey "\e[3~" delete-char
|
bindkey "\e[3~" delete-char
|
||||||
|
# Fix Ctrl+u killing from the cursor instead of the whole line
|
||||||
|
bindkey \^U backward-kill-line
|
||||||
|
|
||||||
# Completion configuration
|
# Completion configuration
|
||||||
zstyle :compinstall filename '/home/ambroisie/.zshrc'
|
zstyle :compinstall filename '/home/ambroisie/.zshrc'
|
||||||
|
|
Loading…
Reference in a new issue