zsh Tip: Preview and undo command line substitutions
The zsh shortcut ^_
undoes changes to the command line, which you can use to test and undo shell expansions before running a command.
For example, type print -- *
and press tab. The *
is replaced with the names of matching files and directories. Press ^_
to undo the change.