Open
Description
zsh can complete commands that are on root's path but not on user's path by adding the following to .zshrc
zstyle ':completion:*:sudo::' environ PATH="/sbin:/usr/sbin:$PATH" HOME="/root"
But these commands aren't being properly highlighted by zsh-syntax-highlighting. Instead of green (valid command) they are appearing red (invalid command). Is there a setting similar to environ to change this?
Activity