Skip to content

Commit

Permalink
Take advantage of LS_COLORS for the color of completion if GNU ls is …
Browse files Browse the repository at this point in the history
…used. (ohmyzsh#5510)
  • Loading branch information
xuhdev authored and Seth Cohen committed Oct 29, 2018
1 parent ee10e7c commit f5b66c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/theme-and-appearance.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f5b66c2

Please sign in to comment.