Ctrl-q is the most useful zsh keybinding that I can never for the life of me remember when I need it. It saves the currently typed command, lets you run one command, and then restores the previously saved command (for Bash it's Ctrl-u to save the command, then Ctrl-y to restore it when you're ready). So for example if you forget a filename in a command without autocomplete, you can Ctrl-q, run ls
, and then you're right back in the partially typed command.
@nytpu Doesn't work in my zsh, apparently you have some unusual setting for that.
@nytpu Neither in bash.