mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
-v: Show where we sourced the default config from
This commit is contained in:
9
neofetch
9
neofetch
@@ -2549,15 +2549,18 @@ esac
|
|||||||
|
|
||||||
getdefaultconfig () {
|
getdefaultconfig () {
|
||||||
if [ -f "/usr/share/neofetch/config" ]; then
|
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
|
elif [ -f "/usr/local/share/neofetch/config" ]; then
|
||||||
source "/usr/local/share/neofetch/config"
|
default_config="/usr/local/share/neofetch/config"
|
||||||
|
|
||||||
else
|
else
|
||||||
getscriptdir
|
getscriptdir
|
||||||
source "${script_dir}/config/config"
|
default_config="${script_dir}/config/config"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
source "$default_config"
|
||||||
|
err "Sourced default config ($default_config)"
|
||||||
}
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
Reference in New Issue
Block a user