From 2c9c741329b5265ab3edfe66accb3c49e9c29c81 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 12 Aug 2016 09:55:35 +1000 Subject: [PATCH] -v: Show where we sourced the default config from --- neofetch | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index 69d65540..271b6a3c 100755 --- a/neofetch +++ b/neofetch @@ -2549,15 +2549,18 @@ esac getdefaultconfig () { if [ -f "/usr/share/neofetch/config" ]; then - source "/usr/share/neofetch/config" + default_config="/usr/share/neofetch/config" elif [ -f "/usr/local/share/neofetch/config" ]; then - source "/usr/local/share/neofetch/config" + default_config="/usr/local/share/neofetch/config" else getscriptdir - source "${script_dir}/config/config" + default_config="${script_dir}/config/config" fi + + source "$default_config" + err "Sourced default config ($default_config)" } # }}}