Cygwin shortcut for command history

后端 未结 6 1671
难免孤独
难免孤独 2021-02-08 16:01

How can I search the command history in cygwin?

I don\'t want to keep pressing the arrow keys to execute a command from console command history.

6条回答
  •  渐次进展
    2021-02-08 16:33

    Do

    vi ~/.inputrc
    

    Add

    For arrow up/down bindings:

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

    Or for page up/down bindings:

    "\e[5~": history-search-backward
    "\e[6~": history-search-forward
    

    Close and open cygwin.

    Voila.

提交回复
热议问题