zsh中的历史命令搜索

Add following lines in .zshrc

bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward

But some terminals may be different key mapping.

Press ctrl-v <key> to find the key mapping.
posted @ 2016-03-31 16:42  哈度普  阅读(3337)  评论(0编辑  收藏  举报