Mac Equivalent to Windows CMD f8
Add this to your ~/.inputrc:


# ↑
"\e[A":history-search-backward
# ↓
"\e[B":history-search-forward

# Try to stay at the same the cursor position when moving through the history.
set history-preserve-point on


The way this operation works is you first type your partial command prefix and begin pressing ↑ and ↓ arrows to begin cycling in reverse and forward respectively through the command history matches to your typed prefix.