aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh/90-exports.zsh
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-20 08:26:21 +0800
committerAaron LI <aly@aaronly.me>2017-10-20 08:26:21 +0800
commitdfce3c52ba94ef755a19e08982d1d5af54ddf37d (patch)
tree475edb6518dc2fa2ded20b4f3768378f29106abd /_zsh/90-exports.zsh
parentfd64d068d2dc7222466ebc3b317774184d54ba6e (diff)
downloaddotfiles-dfce3c52ba94ef755a19e08982d1d5af54ddf37d.tar.bz2
zsh: Move LS_COLORS set from profile to zsh/90-exports.zsh
Diffstat (limited to '_zsh/90-exports.zsh')
-rw-r--r--_zsh/90-exports.zsh13
1 files changed, 13 insertions, 0 deletions
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: #