From 445f6a747657044328a7cf2fb763b9806df84060 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 15 Jan 2022 23:09:46 -0600 Subject: Check for existence of dircolors --- bash/dircolors.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 @@ -eval $(dircolors --sh "${XDG_CONFIG_HOME:-$HOME/.config}/dircolors") +DIRCOLORS="${XDG_CONFIG_HOME:-$HOME/.config/dircolors}" + +if [ -f "$DIRCOLORS" ]; then + eval $(dircolors --sh "$DIRCOLORS"); +fi -- cgit 1.4.1-21-gabe81