We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b52a485 commit 38c8fbeCopy full SHA for 38c8fbe
highlighters/root/root-highlighter.zsh
@@ -40,5 +40,5 @@ _zsh_highlight_root_highlighter_predicate()
40
# root highlighting function.
41
_zsh_highlight_root_highlighter()
42
{
43
- if [[ $(command id -u) -eq 0 ]] { region_highlight+=("0 $#BUFFER $ZSH_HIGHLIGHT_STYLES[root]") }
+ if (( EUID == 0 )) { region_highlight+=("0 $#BUFFER $ZSH_HIGHLIGHT_STYLES[root]") }
44
}
0 commit comments