Autoload highlighters

This commit is contained in:
Matthew Martin 2020-08-09 19:33:44 -05:00
commit b62aeb6168
22 changed files with 2287 additions and 1907 deletions

View file

@ -30,15 +30,3 @@
# Define default styles.
: ${ZSH_HIGHLIGHT_STYLES[root]:=standout}
# Whether the root highlighter should be called or not.
_zsh_highlight_highlighter_root_predicate()
{
_zsh_highlight_buffer_modified
}
# root highlighting function.
_zsh_highlight_highlighter_root_paint()
{
if (( EUID == 0 )) { _zsh_highlight_add_highlight 0 $#BUFFER root }
}