Commit 9677a13c authored by CORP\skazi's avatar CORP\skazi
Browse files

Add Reverse Search in bash

parent ef1fcfd2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ Table of Contents:
### Bash
* [`grep`ping text](bash/grepping-text.md)
* [Listing files](bash/listing-files.md)
* [Reverse Search](bash/reverse-search.md)

### C++
* [`const` unless it can't be](cpp/const-unless-it-cant-be.md)

bash/reverse-search.md

0 → 100644
+4 −0
Original line number Diff line number Diff line
Reverse Search
==============

When we want to use a command that we have used before, we can search for it in the bash history by pressing `Ctrl-R` and then start typing the command we want to search. The current match wil be displayed and when we land on the right match, pressing `Enter` runs the command.