The &>/dev/null is clearly meant to suppress an error message when the plugin is used with versions of Zsh earlier than 5.7; they do not have the zsh/nearcolor module. It does not succeed in suppressing the exit code of 1, however, which causes trouble if you're paying attention to exit codes. For the time being, I propose changing the line to
The || : should ensure an exit code of 0. fast-syntax-highlight seems to work quite well without nearcolor, though perhaps there are unusual terminals that would beg to differ. I think || : completes the developer's original idea.
The last line of
fast-syntax-highlighting.plugin.zsh
isThe
&>/dev/null
is clearly meant to suppress an error message when the plugin is used with versions of Zsh earlier than 5.7; they do not have thezsh/nearcolor
module. It does not succeed in suppressing the exit code of1
, however, which causes trouble if you're paying attention to exit codes. For the time being, I propose changing the line toThe
|| :
should ensure an exit code of0
. fast-syntax-highlight seems to work quite well withoutnearcolor
, though perhaps there are unusual terminals that would beg to differ. I think|| :
completes the developer's original idea.