-v: Show where we sourced the default config from
This commit is contained in:
parent
b22f6fc44c
commit
2c9c741329
1 changed files with 6 additions and 3 deletions
9
neofetch
9
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)"
|
||||
}
|
||||
|
||||
# }}}
|
||||
|
|
Loading…
Reference in a new issue