From c18a5b72e5ca8c96ff92c51326136a167faa3e31 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 3 Jun 2014 09:13:44 +1200 Subject: Store a local .dircolors file Looks like a recent package update hosed mine and removed a bunch of terminal definitions I used. Probably better long-term just to use my own. Removed all the comment cruft from it for now. --- sh/profile.d/ls.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sh') diff --git a/sh/profile.d/ls.sh b/sh/profile.d/ls.sh index f99a59f4..b125b02e 100644 --- a/sh/profile.d/ls.sh +++ b/sh/profile.d/ls.sh @@ -1,5 +1,9 @@ # Define and store appropriate colors for ls if command -v dircolors >/dev/null 2>&1 ; then - eval "$(dircolors --sh)" + if [ -r "$HOME"/.dircolors ] ; then + eval "$(dircolors --sh "$HOME"/.dircolors)" + else + eval "$(dircolors --sh)" + fi fi -- cgit v1.2.3