Zsh: Ctrl+C to delete current line without creating new prompt

262 Views Asked by At

So I really like ipython's feature where it deletes the current line when you press Ctrl+C without creating a new prompt below. Is it in any way possible to do this in Zsh? I have tried the obvious (bindkey -M [desired_mode] '^C' kill-whole-line) but it didn't seem to work, and elsewhere I found advice to not remap Ctrl+C, so I was wondering if anyone knows a solution to this problem. :-)

0

There are 0 best solutions below