Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MichaelDimmitt/39b4471985706e8895b5b272b4ac045c to your computer and use it in GitHub Desktop.
Save MichaelDimmitt/39b4471985706e8895b5b272b4ac045c to your computer and use it in GitHub Desktop.

i-search and reverse-i-search for terminal

crtl-r performs: reverse-i-search

How do you move to the next match?

type crtl-r again!

How do you move to the previous match?

type crtl-i. (for some it is crtl+shift+r)

Example:

ls foo;
ls bar;
<crtl-r> 
<ls>

<crtl-r> <crtl-r>

<crtl-i> <crtl-i> <crtl-i>

Helpful Link:

https://unix.stackexchange.com/a/73499/188491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment