Inserting a newline in a multiline zsh command pulled from history July 22, 2023 by Tarik You can use ESC–Return. FWIW, I tested it on Debian Jessie, zsh 5.0.7 and it works there.