aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-18 10:27:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-18 10:27:25 +1200
commit29b27432d7269662de03d8864a15a5adf101209e (patch)
treeb1dc6b10508ffaf1ac18046543ce2cdad429e509 /sh/profile.d
parentPort grep() and ls() to POSIX sh (diff)
downloaddotfiles-29b27432d7269662de03d8864a15a5adf101209e.tar.gz
dotfiles-29b27432d7269662de03d8864a15a5adf101209e.zip
Do away with dircolors and LS_COLORS
The default colors are just fine; I want to be able to distinguish directories, devices, links, and executable files, and those all appear to be configured by default. The giant environment variable is too annoying for too little benefit.
Diffstat (limited to 'sh/profile.d')
-rw-r--r--sh/profile.d/ls.sh13
1 files changed, 1 insertions, 12 deletions
diff --git a/sh/profile.d/ls.sh b/sh/profile.d/ls.sh
index 7eb61fde..0c3754e9 100644
--- a/sh/profile.d/ls.sh
+++ b/sh/profile.d/ls.sh
@@ -17,15 +17,4 @@
touch -- "$lcd"/color || exit
fi
fi
-) || return
-
-# Run dircolors(1) to export LS_COLORS if available and appropriate
-if [ -e "$HOME"/.cache/ls/color ] ; then
- if command -v dircolors >/dev/null ; then
- if [ -r "$HOME"/.dircolors ] ; then
- eval "$(dircolors --sh -- "$HOME"/.dircolors)"
- else
- eval "$(dircolors --sh)"
- fi
- fi
-fi
+)