terminal中上下箭头历史命令问题

sh/bash/dash/ksh/zsh等Shell脚本
回复
zhangshichun
帖子: 33
注册时间: 2008-03-16 11:00

terminal中上下箭头历史命令问题

#1

帖子 zhangshichun » 2009-03-27 15:33

ubuntu中,我新建了个用户。terminal中输入上下箭头不再调历史命令。是咋回事?

原来的用户就是可以的。在同样的terminal中,用su切换到根用户,也还是可以的。单就这个用户不行,应该修改那个地方?
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: terminal中上下箭头历史命令问题

#2

帖子 eexpress » 2009-03-27 15:42

☎ cat .inputrc
set show-all-if-ambiguous on
set completion-ignore-case on

$if mode=emacs
"\e[A": history-search-backward
"\e[B": history-search-forward

"\C-z": undo
# "\C-\e[C": forward-word
# "\C-\e[D": backward-word
"\C-w": backward-kill-word
"\C-u": kill-word
"\C-f": forward-word
"\C-b": backward-word
$endif
● 鸣学
回复