1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-19 04:10:09 +00:00

Take advantage of LS_COLORS for the color of completion if GNU ls is used. (#5510)

This commit is contained in:
Hong 2016-10-10 11:40:17 -07:00 committed by Marc Cornellà
parent 3be4108d72
commit 98cd3973d2

View file

@ -24,6 +24,9 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
fi
ls --color -d . &>/dev/null && alias ls='ls --color=tty' || alias ls='ls -G'
# Take advantage of $LS_COLORS for completion as well.
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
fi
fi