@L29Ah
It's in the Zsh manual as a default binding and I have a completely stock Zsh with no plugins and a minimal configuration, so clearly you're the one who's changed something or are running a really old version (or you're in Vim mode where it's esc-q instead of ctrl-q)
https://zsh.sourceforge.io/Doc/Release/Zsh-Line-Editor.html#Miscellaneous
For Bash I I misremembered, it's Ctrl-u to kill the line, then Ctrl-y to paste it back after you're done running other commands
@nytpu Ah, it's there in the emacs mode, and i have zsh in vi mode, so i will have to bind it explicitly, thank you.
@nytpu Neither in bash.