re: 5 Handy Bash Tricks in 2 Minutes VIEW POST

TOP OF THREAD FULL DISCUSSION
re: That's a great trick! Thanks!
 

You could also pipe history too! Which could allow you to grep (and more) within your history:

$ history | grep "status"

10005  git status
10008  git status
10011  git status
10014  git status
10016  git status

:)

ctrl-r status will walk back up your history looking at each time the command line contained status - just hit return when you find the command you need.

code of conduct - report abuse