经常 Ctrl+R 按多了一下,然后就回不来了。
man 文档说 Ctrl+S 可以向前搜索,但是我怎么试都不行。
reverse-search-history (C-r)
Search backward starting at the current line and moving `up' through the history as necessary. This is an incremental search.
forward-search-history (C-s)
Search forward starting at the current line and moving `down' through the history as necessary. This is an incremental search.
1
YORYOR 2018-03-23 16:51:49 +08:00
亲测了一下 C-r 过了 直接 C-s 可以
不过我是 zshell |
2
MyPassWordis 2018-03-23 17:50:04 +08:00 via iPhone 2
stty -ixon
关掉流控制 |
3
yuzenan888 OP @MyPassWordis 谢谢,竟然好了!我是用 macOS 自带的终端。
|