Unable to forward search Bash history similarly as with CTRL-r

前端 未结 5 584
死守一世寂寞
死守一世寂寞 2020-11-30 15:55

I am trying to search my bash history similarly as with CTRL-r, but to forward direction.

It has been a pain for me, when I just hit once too o

5条回答
  •  忘掉有多难
    2020-11-30 16:34

    You may want to try https://github.com/dvorka/hstr which allows for "suggest box style" filtering of Bash history with (optional) metrics based ordering i.e. it is much more efficient and faster in both forward and backward directions:

    enter image description here

    It can be easily bound to Ctrl-r and/or Ctrl-s

提交回复
热议问题