diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-06-03 09:13:44 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-06-03 09:13:44 +1200 |
commit | c18a5b72e5ca8c96ff92c51326136a167faa3e31 (patch) | |
tree | a9266e0cfdedf0862359c8669fc833d6c77dfb62 /sh | |
parent | Be more specific about prompt part appearance (diff) | |
download | dotfiles-c18a5b72e5ca8c96ff92c51326136a167faa3e31.tar.gz dotfiles-c18a5b72e5ca8c96ff92c51326136a167faa3e31.zip |
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.
Diffstat (limited to '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 |