Supercharge Command Line's History Search

Signed-off-by: Zealot Ke <chzealot@gmail.com>