我已经history-search-backward映射为PageUp。
当我键入:
git push <PageUp><PageUp><PageUp>
- 在Bash中,它开始遍历所有以git push开头的历史记录条目
- 在这岩组通过所有历史记录条目开始循环开头混帐所以它会列出条目这样
git status,git remote update等,这是不是我想要的。
我怎样才能让zsh表现得像bash?我setopt应该设置什么?
我已经history-search-backward映射为PageUp。
当我键入:
git push <PageUp><PageUp><PageUp>
git status,git remote update等,这是不是我想要的。我怎样才能让zsh表现得像bash?我setopt应该设置什么?
Answers:
bindkey "^[[5~" history-beginning-search-backward
bindkey "^[[6~" history-beginning-search-forward
这就是我用的
zsh表现得像bash?
<C-e>的zsh行为可以将行为转变为bash行为,但反之则不那么容易。
"^[[5~"来"^[[A"和"^[[6~"以"^[[B"