Ctrl+R搜索时如果多按了一次如何回退?
比如按"Ctrl+R"三次就是想要的结果,但不小心按了"Ctrl+R"四次
该怎么撤销掉多按的那一次"Ctrl+R"?
Ctrl+R搜索时如果多按了一次如何回退?
-
- 帖子: 2284
- 注册时间: 2013-05-26 6:58
- 系统: Debian 9
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: Ctrl+R搜索时如果多按了一次如何回退?
先执行 stty -ixon 禁用 C-s 的暂停功能
后可在 reverse-i-search 过程中按 C-s 倒序搜索 (i-search)
亲测可用
参考
http://stackoverflow.com/questions/1237 ... -and-forth
http://superuser.com/questions/159106/r ... ch-in-bash
http://stackoverflow.com/questions/1776 ... ous-result
http://askubuntu.com/questions/60071/ho ... mand-ctrlr
后可在 reverse-i-search 过程中按 C-s 倒序搜索 (i-search)
亲测可用
参考
http://stackoverflow.com/questions/1237 ... -and-forth
http://superuser.com/questions/159106/r ... ch-in-bash
http://stackoverflow.com/questions/1776 ... ous-result
http://askubuntu.com/questions/60071/ho ... mand-ctrlr
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户