From d8a1165694c5ced74ab369ba582ca35fb70d4baf Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 12 Aug 2016 16:52:51 +1000 Subject: [PATCH] Add missing ascii_distro config option --- config/config | 5 +++++ neofetch | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config/config b/config/config index 01c20cb3..2425557e 100644 --- a/config/config +++ b/config/config @@ -345,6 +345,11 @@ xoffset=0 # --ascii 'distro', path/to/ascii ascii="distro" +# Ascii distro +# Which distro's ascii art to display. +# --ascii_distro 'auto', 'distro_name' +ascii_distro="auto" + # Ascii colors # When this is set to distro it will use your # ditro's colors to color the ascii. diff --git a/neofetch b/neofetch index 56715639..3ea4d96b 100755 --- a/neofetch +++ b/neofetch @@ -2979,7 +2979,9 @@ trap 'printf "\033[?25h"; clear; exit' 2 # Distro detection getdistro -[ -z "$ascii_distro" ] && ascii_distro="$(trim "$distro")" +case "${ascii_distro:-auto}" in + "auto") ascii_distro="$(trim "$distro")" ;; +esac # Get colors and bold bold