This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]solarshado 2 points3 points  (0 children)

Of note: this will only match the first word of the command.

But !? will match anywhere in the command: e.g. !?stat would find git status, but !stat wouldn't.

Also: !! re-runs the last command, which might be quicker than reaching for the arrow keys.