Take the 2-minute tour ×

In Bash, control-u will clear from the curser to the beginning of the line, and put that text into the paste buffer, which can be pasted with control-y.

In Zsh, it will clear the text, but does not put it into the buffer.


share|improve this question

1 Answer 1

up vote 4 down vote accepted

This can be done really easily with just two bindkey commands:

bindkey '^U' backward-kill-line
bindkey '^Y' yank

It may be worth noting that at least '^Y' should be bound in the default Emacs keymap.

share|improve this answer
yes! worked like a charm. before it was set to kill-whole-line –  John Bachir Dec 10 '10 at 3:27

Your Answer


