これかな。
comint-previous-matching-input-from-input

C-c M-r 押しにくいが。