报错信息
bash
zsh-syntax-highlighting: unhandled ZLE widget 'history-substring-search-down'
zsh-syntax-highlighting: (This is sometimes caused by doing `bindkey <keys> history-substring-search-down` without creating the 'history-substring-search-down' widget with `zle -N` or `zle -C`.)
zsh-syntax-highlighting: unhandled ZLE widget 'history-substring-search-up'
zsh-syntax-highlighting: (This is sometimes caused by doing `bindkey <keys> history-substring-search-up` without creating the 'history-substring-search-up' widget with `zle -N` or `zle -C`.)
解决方案:
- 检查是否安装
zsh-history-substring-search
没安装执行:
pacman -S zsh-history-substring-search
- 检查 ~/.zhsrc 中
source /usr/xxx/xxxx/zsh-syntax-highlighting.zsh
是否放在最后(move the end)