📜  反向搜索命令 mac - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:22.003000             🧑  作者: Mango

代码示例1
Add to ~/.zshrc:

autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey "^[[A" up-line-or-beginning-search # Up
bindkey "^[[B" down-line-or-beginning-search # Down