TIL I can use ctrl+R to search bash history! This is going to save me a lot of time going forward!
# use up and down arrow to match search history based on typed starting text
"\e[A": history-search-backward
"\e[B": history-search-forward $ units --verbose
You have: 1 mile * 20 pounds force
You want: joule
1 mile * 20 pounds force = 143174.38 joule
1 mile * 20 pounds force = (1 / 6.98449e-06) joule(ctrl+S and ctrl+R are based on emacs shortcuts, where ctrl+S is search and ctrl+R is reverse search)
ctrl+shift+r works though.
(Not sure why bash did not go the obvious route here, I guess they already had something on ctrl+S when they implemented forward search...)
EDIT: actually, you can activate ctrl+S for search-foward on bash by using `stty -ixon`. See more info about why here https://unix.stackexchange.com/questions/141422/searching-hi...
https://github.com/junegunn/fzf/wiki/Examples#command-histor...