bash pressing CTRL + U clears the characters on the line before the current cursor position while in
zsh this will clear the entire line. How do I clear the characters on the line before the current cursor position by pressing CTRL + U in
Bash and zsh work slightly different here. In zsh, CTRL + U clears the entire line instead.
In your configuration .zsh put this lines:
bindkey -e bindkey \^U backward-kill-line
You can use
to list all of your keyboard shortcuts in zsh.
BTW: in bash you will print all bindkey with the following command:
So no cheat sheets are necessary!