Commit 48d2d8cc authored by Dylan Araps's avatar Dylan Araps

config: Add backwards compatibility with old filename.

parent fe793fa4
...@@ -3637,7 +3637,10 @@ get_user_config() { ...@@ -3637,7 +3637,10 @@ get_user_config() {
# Check ${XDG_CONFIG_HOME}/neofetch and create the # Check ${XDG_CONFIG_HOME}/neofetch and create the
# dir/files if they don't exist. # dir/files if they don't exist.
if [[ -f "${XDG_CONFIG_HOME}/neofetch/config.conf" ]]; then if [[ -f "${XDG_CONFIG_HOME}/neofetch/config" ]]; then
config_file="${XDG_CONFIG_HOME}/neofetch/config"
elif [[ -f "${XDG_CONFIG_HOME}/neofetch/config.conf" ]]; then
config_file="${XDG_CONFIG_HOME}/neofetch/config.conf" config_file="${XDG_CONFIG_HOME}/neofetch/config.conf"
elif [[ -f "/etc/neofetch/config.conf" ]]; then elif [[ -f "/etc/neofetch/config.conf" ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment