Hacker News new | ask | show | jobs
by _0ffh 883 days ago
At some point in the past it took me nearly an hour trawling the internet to find this piece of code, though it's not quite identical.

  "\e[A": history-search-backward
  "\e[B": history-search-forward
  "\eOA": history-search-backward
  "\eOB": history-search-forward
The only downside ist, don't over-rely on history muscle memory! Regularly every few months I use p+arrowUp and expect to get "ping" but get the exceptional "pip" instead.