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.
sadness.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With