Last Updated: February 25, 2016
·
1.188K
· sheerun

Highlight prefix on zsh autocompletion

Picture

Add following to your .zshrc:

zstyle -e ':completion:*:default' list-colors 'reply=("${PREFIX:+=(#bi)($PREFIX:t)*==34=34}:${(s.:.)LS_COLORS}")';

Source: reddit