Last Updated: December 29, 2018
·
781
· steplercamp

Quickly search past commands

This is really simple, but has made my life much easier. In your .bashrc

alias his='history | grep'

then to search past commands you just run his query

1 Response
Add your response

You can also use ctrl+r and the begin of command. Pressing ctrl+r again, it shows "another" result.

over 1 year ago ·