更改ubuntu终端的上下箭头

时间:2012-12-28 10:59:35

标签: ubuntu terminal

如何在ubuntu的终端中组合/向下箭头仅向上和向下滚动以我已输入的内容开头的命令? 例如,如果我输入了这些命令:

%bla

%做这个

%那样做

然后,我输入bl [向上箭头],我希望它显示“bla”而不是“先做那个”。

感谢。

1 个答案:

答案 0 :(得分:1)

这是对的吗?

# ~/.inputrc
"\e[A": beginning-of-history

Here is the table of escape sequece. 并且Cursor Up位于顶部。

And there are some interesting commands.

参考:

How do I change bash history completion to complete what's already on the line?