In normal bash after killing text with ctrl+w / ctrl+u / ctrl+k, you are able to yank it with ctrl+y.

In zsh this works.
However it's also possible to go back in the kill-ring/history with meta/alt+y.
In bash I'm able to press alt+y as many times as I want and cycle though what has been deleted. However in zsh it moves a single kill back in the history and stops.

Can't seem to find any information on this and would like this feature to work as it does in normal Bash.

How is it possible to go back in the kill history with zsh more than one item?

  • 1
    This works for me, both with zsh -f and with my configuration. What version of zsh are you using? Does it work differently with zsh -f? Apr 24 '20 at 9:28
  • Very odd. When I run zsh -f zsh crashes to a more simple console without any other error output... Apr 24 '20 at 10:43
  • I have 5.7.1-1ubuntu2 according to aptitude. Apr 24 '20 at 10:48
  • 1
    zsh -f starts a new instance of zsh without your configuration files. Try how repeated Alt+Y works in that instance. Apr 24 '20 at 11:06
  • 1
    Ah yes, I was thrown off by the lack of any graphics at all... yes it does seem to work there. Thanks, so I guess there's something messing with it in the confs. First place to look would be to disable each plugin... don't have many... Apr 24 '20 at 11:55

Seems that problem lies somewhere in the zsh-sytax-highlighting plugin.

Looks like a known issue: https://github.com/zsh-users/zsh-syntax-highlighting/issues/183

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.