@chrisod bash? Try Cntrl-r, type part of the command, use Cntrl-r to step backwards to the next instance if that's not the right one for the matching string.