← Back to context

Comment by bwhaley

9 hours ago

Once you start using CTRL+r, you may find that you never reach for up arrow again.

I'm familiar with ctrl-r, but I still very much like the up-arrow behavior described by that commenter.

  • Looking at it from a "law of least surprise" angle, it's exactly how it should behave.

    "I typed 'cd di↑' and you're giving me 'pwd'??"

export EDITOR=vi and then hitting Esc puts you into vi mode; k, j to move up/down through history or pressing / to search etc including using regex is all available.