From 60b4b925d32ab105c680a832bbf88f4e30f88d33 Mon Sep 17 00:00:00 2001 From: Azalea Date: Tue, 6 Jun 2023 20:14:13 -0700 Subject: [PATCH] [O] Allow specifying default config to copy to ~/.config Closes #133 --- neofetch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neofetch b/neofetch index 1181f669..8250da88 100755 --- a/neofetch +++ b/neofetch @@ -984,6 +984,11 @@ background_color= stdout="auto" EOF +# If /etc/neofetch/default.conf exist, set config variable to its content +if [[ -f /etc/neofetch/default.conf ]]; then + config="$(< /etc/neofetch/default.conf)" +fi + # DETECT INFORMATION get_os() {