LS_COLORS support for completion

This commit is contained in:
Denis Payase 2013-07-28 20:26:56 +04:00
commit 4296c9a383

View file

@ -18,7 +18,11 @@ else
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
fi
zstyle ':completion:*' list-colors ''
if [ "x$LS_COLORS" = "x" ]; then
zstyle ':completion:*' list-colors ''
else
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
fi
# should this be in keybindings?
bindkey -M menuselect '^o' accept-and-infer-next-history