From 7ebd67ca4f525a845d11f7ff924c6e74a6c63f75 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 29 Jan 2016 18:24:34 +1100 Subject: [PATCH] Combine ascii color rules for distros that share the same colors --- fetch | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/fetch b/fetch index a9b21cdf..2c91996b 100755 --- a/fetch +++ b/fetch @@ -1295,13 +1295,10 @@ getascii () { c3=$(color 7) ;; - "Debian"* | "FreeBSD"*) + "Debian"* | "FreeBSD"* | "Red Hat"* | "elementary"* | "CrunchBang"* | "Ubuntu"*) c1=$(color 7) c2=$(color 1) - ;; - - "elementary"* | "CrunchBang"*) - c1=$(color 7) + c3=$(color 3) ;; "Fedora"*) @@ -1319,11 +1316,7 @@ getascii () { c2=$(color 8) ;; - "Manjaro"* | "Deepin"*) - c1=$(color 2) - ;; - - "Mac OS X"*) + "Mac OS X"* | "Manjaro"* | "Deepin"*) c1=$(color 2) c2=$(color 3) c3=$(color 1) @@ -1339,7 +1332,7 @@ getascii () { ascii_distro="mint" ;; - "NetBSD"*) + "NetBSD"* | "Parabola"*) c1=$(color 5) c2=$(color 7) ;; @@ -1357,27 +1350,11 @@ getascii () { c2=$(color 7) ;; - "Parabola"*) - c1=$(color 5) - c2=$(color 7) - ;; - - "Red Hat"*) - c1=$(color 7) - c2=$(color 1) - ;; - "Slackware"*) c1=$(color 4) c2=$(color 7) ;; - "Ubuntu"*) - c1=$(color 7) - c2=$(color 1) - c3=$(color 3) - ;; - "void"*) c1=$(color 2) c2=$(color 2)