diff options
author | Case Duckworth | 2022-01-15 23:09:46 -0600 |
---|---|---|
committer | Case Duckworth | 2022-01-15 23:09:46 -0600 |
commit | 445f6a747657044328a7cf2fb763b9806df84060 (patch) | |
tree | 448869d0dd3f0de65366dcdd3f5d069e66859f40 | |
parent | Add emacs.service (diff) | |
download | etc-445f6a747657044328a7cf2fb763b9806df84060.tar.gz etc-445f6a747657044328a7cf2fb763b9806df84060.zip |
Check for existence of dircolors
-rw-r--r-- | bash/dircolors.bash | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bash/dircolors.bash b/bash/dircolors.bash index 597ee95..10967ec 100644 --- a/bash/dircolors.bash +++ b/bash/dircolors.bash | |||
@@ -1 +1,5 @@ | |||
1 | eval $(dircolors --sh "${XDG_CONFIG_HOME:-$HOME/.config}/dircolors") | 1 | DIRCOLORS="${XDG_CONFIG_HOME:-$HOME/.config/dircolors}" |
2 | |||
3 | if [ -f "$DIRCOLORS" ]; then | ||
4 | eval $(dircolors --sh "$DIRCOLORS"); | ||
5 | fi | ||