From eb0d0ebfc1dab0f3eaf75eec5ba8d9a163c888a8 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Wed, 24 Apr 2019 14:16:17 -0700 Subject: [PATCH] Only use dircolors when available. --- dotfiles/profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dotfiles/profile b/dotfiles/profile index 4062c24..56a3cf5 100755 --- a/dotfiles/profile +++ b/dotfiles/profile @@ -9,6 +9,8 @@ export GREP_COLOR='01;31' export GREP_COLORS='mt=01;31:mc=01;31:ms=01;31' # Setup LS_COLORS -test -f "${HOME}/.dircolors" && eval $(dircolors "${HOME}/.dircolors") +whence dircolors >/dev/null 2>&1 && \ + test -f "${HOME}/.dircolors" && \ + eval $(dircolors "${HOME}/.dircolors") test -f "${HOME}/.profile.local" && . "${HOME}/.profile.local"