From dfce3c52ba94ef755a19e08982d1d5af54ddf37d Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 20 Oct 2017 08:26:21 +0800 Subject: zsh: Move LS_COLORS set from profile to zsh/90-exports.zsh --- _zsh/90-exports.zsh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '_zsh/90-exports.zsh') diff --git a/_zsh/90-exports.zsh b/_zsh/90-exports.zsh index b321737..1472a7a 100644 --- a/_zsh/90-exports.zsh +++ b/_zsh/90-exports.zsh @@ -9,5 +9,18 @@ # This `GPG_TTY' variable should be set to the correct TTY where the shell # is running. See also `gpg-agent(1)' export GPG_TTY=$(tty) +# colors for BSD ls +if [[ -n "${IS_BSD}" ]]; then + export CLICOLOR=1 + export LSCOLORS=exfxcxdxbxegedabagacad +fi + +# Color setup for `ls': `LS_COLORS' +# NOTE: For unknown reason, the `LS_COLORS' variable get overridden when +# it is set in `~/.profile'. +if exists dircolors; then + eval $(dircolors -b) +fi + # vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: # -- cgit v1.2.2