Commit 98cd3973 authored by Hong's avatar Hong Committed by Marc Cornellà
Browse files

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

parent 3be4108d
...@@ -24,6 +24,9 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then ...@@ -24,6 +24,9 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
fi fi
ls --color -d . &>/dev/null && alias ls='ls --color=tty' || alias ls='ls -G' 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
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment