In a zsh, maybe I pressed Alt+X by mistake,
but now I'm stuck and this execute: _
prompt won't leave.
Pressing Ctrl+C does nothing.
If I press Enter it tries to complete what I typed.
Pressing Enter on an empty line:
execute: _
zsh: do you wish to see all 373 possibilities (64 lines)?
Typing q
and pressing Enter:
execute: quote_
quoted-insert quote-line quote-region
In other shells, Alt+X brings the same behavior,
except that Ctrl+C cancels the prompt.
Is there a way to get out or is this shell dead?
Best Answer
Ctrl+G aborts the current editing command in Bash and Zsh if you are in Emacs mode (which is usually the default mode).