You don't storm up‑arrow, do you?

You don't storm up‑arrow, do you?

To enter a command, you can (and should) use the TAB key to autocomplete it. If autocomplete does not work with Git in your case, you should first google how to set it up in your terminal, or start using a different one.

Usually it is the case that the command we are interested in has recently been typed in exactly the same form as the one we need now. So we start pressing the up arrow at breakneck speed and after a while we find it. Satisfied that we didn’t have to type again, we push away the thoughts that it wasn’t any faster.

There is a 100 times simpler and faster way, which for reasons unknown to us (as of 2022), nobody is talking about and almost nobody is using! It’s called reverse search.

Just press CTRL+R and type in any part of the command you want to find in your history.

E.g. CTRL+R+dd+ENTER has just executed the command git add . in my terminal.

This way, the console shows us the last matching result, and if we want to select an earlier result, we just need to click CTRL+R again.

This tool is built-in in every modern console, even Powershell.

What our attendees say

87% of attendees gave us the highest ratings!

Latest articles

Author
Author
Author

Get In Touch

Do you have any questions? We have the answers!

Loading...