From 1278844d87fc9d133258b9ba332fbed3a97c0279 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 17 Oct 2018 14:32:18 +1100 Subject: [PATCH] general: fixed config issue. Closes #1088 --- neofetch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index 0c95fcc1..7e28c23c 100755 --- a/neofetch +++ b/neofetch @@ -4081,19 +4081,19 @@ get_full_path() { get_user_config() { mkdir -p "${XDG_CONFIG_HOME}/neofetch/" - shopt -s nullglob - files=("$XDG_CONFIG_HOME"/neofetch/confi*) - shopt -u nullglob - # --config /path/to/config.conf if [[ -f "$config_file" ]]; then source "$config_file" err "Config: Sourced user config. (${config_file})" return - elif [[ -f "${files[0]}" ]]; then - source "${files[0]}" - err "Config: Sourced user config. (${files[0]})" + elif [[ -f "${XDG_CONFIG_HOME}/neofetch/config.conf" ]]; then + source "${XDG_CONFIG_HOME}/neofetch/config.conf" + err "Config: Sourced user config. (${XDG_CONFIG_HOME}/neofetch/config.conf)" + + elif [[ -f "${XDG_CONFIG_HOME}/neofetch/config" ]]; then + source "${XDG_CONFIG_HOME}/neofetch/config" + err "Config: Sourced user config. (${XDG_CONFIG_HOME}/neofetch/config)" else config_file="${XDG_CONFIG_HOME}/neofetch/config.conf"