aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-02-05 11:16:38 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-02-05 11:16:38 +1300
commit37bf75ee2da67c32b3de99516a107a38119771eb (patch)
tree630e5fac9c4fa08e8e59a399ad89a2f619fcd491 /sh
parentMove a paragraph for clarity (diff)
downloaddotfiles-37bf75ee2da67c32b3de99516a107a38119771eb.tar.gz
dotfiles-37bf75ee2da67c32b3de99516a107a38119771eb.zip
Move LSCOLORS export into profile
dircolors(1) exports its LS_COLORS var, so it's pointless reloading it on every non-login shell
Diffstat (limited to 'sh')
-rw-r--r--sh/profile.d/ls.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/sh/profile.d/ls.sh b/sh/profile.d/ls.sh
new file mode 100644
index 00000000..c00d815d
--- /dev/null
+++ b/sh/profile.d/ls.sh
@@ -0,0 +1,5 @@
+# Define and store appropriate colors for ls
+if command -v dircolors >/dev/null 2>&1; then
+ eval "$(dircolors --sh)"
+fi
+