zsh-highlighting在macosx上返回奇怪的输出

时间:2016-11-19 01:12:21

标签: syntax-highlighting zsh zshrc

我在macosx 10.11.6

上使用zsh 5.2版

添加时

source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

作为我的.zshrc的最后一行,在linux中一切运行良好。

在macosx上,当启动终端和每个命令时,我得到以下输出:

_zsh_highlight:13: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:14: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:18: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:21: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:24: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:25: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:27: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:28: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:29: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:32: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:32: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:35: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:36: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:39: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:39: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:43: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight_highlighter_main_predicate:3: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight_highlighter_main_predicate
_zsh_highlight_buffer_modified:2: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight_buffer_modified
_zsh_highlight:62: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
(eval):1: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:69: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:69: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:71: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:87: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:90: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:93: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:96: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:100: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight
_zsh_highlight:101: scalar parameter ZSH_DEBUG_CMD created globally in function _zsh_highlight

终端在打字时也会表现得很奇怪。每行都出现字符。我在谷歌搜索时发现的唯一类似的bug是关于我的系统上没有安装的phpbrew。

1 个答案:

答案 0 :(得分:0)

我只是强制对repo进行更新,bug就消失了。 问题不在我的环境中。