diff options
Diffstat (limited to 'sh/profile.d/ls.sh')
-rw-r--r-- | sh/profile.d/ls.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |